Skip to content

Commit

Permalink
Fix Lint typos
Browse files Browse the repository at this point in the history
  • Loading branch information
praslnx8 committed Jan 21, 2024
1 parent da5f83e commit 122fc34
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 39 deletions.
10 changes: 5 additions & 5 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
the conditions stated below. SubLicensing is not allowed; section 10
makes it unnecessary.

3. Protecting Users' Legal Rights From Anti-Circumvention Law.
Expand Down Expand Up @@ -268,7 +268,7 @@ in one of these ways:

c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
alternative is allowed only occasionally and non commercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.

Expand Down Expand Up @@ -390,10 +390,10 @@ restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
a further restriction but permits re-licensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
not survive such re-licensing or conveying.

If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
Expand Down Expand Up @@ -481,7 +481,7 @@ by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
patent sub-licenses in a manner consistent with the requirements of
this License.

Each contributor grants you a non-exclusive, worldwide, royalty-free
Expand Down
4 changes: 2 additions & 2 deletions lib/api/db/app_database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ class AppDatabase extends _$AppDatabase {
await transaction(() async {
for (var entry in backup.entries) {
var tableName = entry.key;
var tableDatas = entry.value;
var tableDataList = entry.value;

for (var tableData in tableDatas) {
for (var tableData in tableDataList) {
final String columnsString =
tableData.keys.where((key) => tableData[key] != null).join(', ');
final String valuesString = tableData.keys
Expand Down
6 changes: 3 additions & 3 deletions lib/presentation/baskets_presenter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ class BasketVO {
final String name;
final String description;
final double totalInvestedAmount;
final int totalInvesments;
final int totalInvestments;

BasketVO(
{required this.totalInvestedAmount,
required this.totalInvesments,
required this.totalInvestments,
required this.id,
required this.name,
required this.description});
Expand All @@ -51,6 +51,6 @@ class BasketVO {
name: basket.name,
description: basket.description ?? '',
totalInvestedAmount: investedValue,
totalInvesments: totalInvestments);
totalInvestments: totalInvestments);
}
}
12 changes: 6 additions & 6 deletions lib/presentation/sips_presenter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class SipsPresenter extends Presenter<SipsViewState> {
_investmentService
.getBy(id: _investmentId)
.then((investment) => investment.getSips())
.then((sips) => Future.wait(sips.map((sip) => SIPVO.from(sip: sip))))
.then((sips) => Future.wait(sips.map((sip) => SipVO.from(sip: sip))))
.then((sipVOs) => updateViewState((viewState) {
viewState.sipVOs = sipVOs;
}));
Expand All @@ -33,10 +33,10 @@ class SipsPresenter extends Presenter<SipsViewState> {
}

class SipsViewState {
List<SIPVO> sipVOs = [];
List<SipVO> sipVOs = [];
}

class SIPVO {
class SipVO {
final int id;
final int investmentId;
final String? description;
Expand All @@ -45,7 +45,7 @@ class SIPVO {
final DateTime? endDate;
final SipFrequency frequency;

SIPVO(
SipVO(
{required this.id,
required this.investmentId,
required this.description,
Expand All @@ -54,9 +54,9 @@ class SIPVO {
required this.endDate,
required this.frequency});

static Future<SIPVO> from({required final SIP sip}) async {
static Future<SipVO> from({required final SIP sip}) async {
final DateTime? endDate = sip.endDate;
return SIPVO(
return SipVO(
id: sip.id,
investmentId: sip.investmentId,
description: sip.description,
Expand Down
12 changes: 6 additions & 6 deletions lib/presentation/tagged_goals_presenter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TaggedGoalsPresenter extends Presenter<TaggedGoalsViewState> {
.getBy(id: _investmentId)
.then((investment) => investment.getGoals())
.then((taggedGoals) => Future.wait(taggedGoals.entries.toList().map(
(taggedGoal) => TagggedGoalVO.from(
(taggedGoal) => TaggedGoalVO.from(
goal: taggedGoal.key, split: taggedGoal.value))))
.then((taggedGoalVOs) => updateViewState((viewState) {
viewState.taggedGoalVOs = taggedGoalVOs;
Expand All @@ -35,12 +35,12 @@ class TaggedGoalsPresenter extends Presenter<TaggedGoalsViewState> {
}

class TaggedGoalsViewState {
List<TagggedGoalVO> taggedGoalVOs = [];
List<TaggedGoalVO> taggedGoalVOs = [];

TaggedGoalsViewState();
}

class TagggedGoalVO {
class TaggedGoalVO {
final int id;
final String name;
final String? description;
Expand All @@ -51,7 +51,7 @@ class TagggedGoalVO {
final GoalImportance importance;
final double splitPercentage;

TagggedGoalVO(
TaggedGoalVO(
{required this.id,
required this.name,
required this.description,
Expand All @@ -62,9 +62,9 @@ class TagggedGoalVO {
required this.importance,
required this.splitPercentage});

static Future<TagggedGoalVO> from(
static Future<TaggedGoalVO> from(
{required final Goal goal, required final double split}) async {
return Future.value(TagggedGoalVO(
return Future.value(TaggedGoalVO(
id: goal.id,
name: goal.name,
description: goal.description,
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/pages/baskets_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class _BasketsPage
Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text('${basketVO.totalInvesments}',
Text('${basketVO.totalInvestments}',
style: Theme.of(context).textTheme.bodyMedium),
Text('(Investments)',
style: Theme.of(context).textTheme.labelSmall),
Expand Down
1 change: 0 additions & 1 deletion lib/ui/pages/main_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class MainPage extends StatefulWidget {

class _MainPageState extends PageState<MainViewState, MainPage, MainPresenter> {
var _selectedIndex = 0;
var _isExtended = true;

@override
Widget buildWidget(BuildContext context, MainViewState snapshot) {
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/widgets/view_sips_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class _SipsPage extends PageState<SipsViewState, _SipsDialog, SipsPresenter> {
shrinkWrap: true,
itemCount: snapshot.sipVOs.length,
itemBuilder: (context, index) {
SIPVO sipVO = snapshot.sipVOs[index];
SipVO sipVO = snapshot.sipVOs[index];
return ListTile(
title: Column(
crossAxisAlignment: CrossAxisAlignment.start,
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/widgets/view_tagged_goal_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class _TaggedGoalsPage extends PageState<TaggedGoalsViewState,
shrinkWrap: true,
itemCount: snapshot.taggedGoalVOs.length,
itemBuilder: (context, index) {
TagggedGoalVO taggedGoalVO =
TaggedGoalVO taggedGoalVO =
snapshot.taggedGoalVOs.elementAt(index);
return ListTile(
title: Text(
Expand Down
15 changes: 2 additions & 13 deletions web/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,12 @@
"icons": [
{
"src": "icons/icon.png",
"sizes": "192x192",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "icons/icon.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "icons/icon.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "icons/icon.png",
"sizes": "512x512",
"sizes": "96x96",
"type": "image/png",
"purpose": "maskable"
}
Expand Down

0 comments on commit 122fc34

Please sign in to comment.