Skip to content

Commit

Permalink
#000 | Hemanth | Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
h4h13 committed Feb 27, 2024
1 parent 2aaa6ae commit f79301e
Show file tree
Hide file tree
Showing 56 changed files with 115 additions and 118 deletions.
4 changes: 2 additions & 2 deletions lib/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import 'package:paisa/main.dart';

class PaisaApp extends StatefulWidget {
const PaisaApp({
Key? key,
}) : super(key: key);
super.key,
});

@override
State<PaisaApp> createState() => _PaisaAppState();
Expand Down
6 changes: 3 additions & 3 deletions lib/core/widgets/choose_calendar_format_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import 'package:paisa/main.dart';

class ChooseCalendarFormatWidget extends StatefulWidget {
const ChooseCalendarFormatWidget({
Key? key,
super.key,
this.currentFormat,
}) : super(key: key);
});

final CalendarFormats? currentFormat;

Expand Down Expand Up @@ -59,7 +59,7 @@ class ChooseCalendarFormatWidgetState
),
),
)
.toList(),
,
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Expand Down
6 changes: 3 additions & 3 deletions lib/core/widgets/choose_theme_mode_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import 'package:paisa/main.dart';

class ChooseThemeModeWidget extends StatefulWidget {
const ChooseThemeModeWidget({
Key? key,
super.key,
required this.currentTheme,
}) : super(key: key);
});

final ThemeMode currentTheme;

Expand Down Expand Up @@ -55,7 +55,7 @@ class ChooseThemeModeWidgetState extends State<ChooseThemeModeWidget> {
),
),
)
.toList(),
,
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Expand Down
4 changes: 2 additions & 2 deletions lib/core/widgets/filter_widget/filter_budget_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import 'package:paisa/features/home/presentation/controller/summary_controller.d

class FilterBudgetToggleWidget extends StatelessWidget {
const FilterBudgetToggleWidget({
Key? key,
super.key,
required this.summaryController,
}) : super(key: key);
});

final SummaryController summaryController;

Expand Down
4 changes: 2 additions & 2 deletions lib/core/widgets/paisa_widgets/paisa_empty_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import 'paisa_button.dart';

class EmptyWidget extends StatelessWidget {
const EmptyWidget({
Key? key,
super.key,
required this.title,
required this.icon,
required this.description,
this.onActionPressed,
this.actionTitle,
}) : super(key: key);
});

final String? actionTitle;
final String description;
Expand Down
3 changes: 1 addition & 2 deletions lib/core/widgets/paisa_widgets/paisa_icon_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,10 @@ Future<IconData> paisaIconPicker({

class _IconPickerWidget extends StatefulWidget {
const _IconPickerWidget({
Key? key,
required this.iconKeys,
required this.selectedIcon,
required this.onSelectedIcon,
}) : super(key: key);
});

final List<String> iconKeys;
final Function(IconData icon) onSelectedIcon;
Expand Down
4 changes: 2 additions & 2 deletions lib/core/widgets/paisa_widgets/paisa_user_image_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import 'package:paisa/features/profile/presentation/cubit/profile_cubit.dart';

class PaisaUserImageWidget extends StatelessWidget {
const PaisaUserImageWidget({
Key? key,
super.key,
required this.pickImage,
this.maxRadius,
this.useDefault = false,
}) : super(key: key);
});

final double? maxRadius;
final VoidCallback pickImage;
Expand Down
4 changes: 2 additions & 2 deletions lib/core/widgets/progress_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ class ProgressBar extends StatelessWidget {
final Color? color;

const ProgressBar({
Key? key,
super.key,
required this.max,
required this.current,
this.color,
}) : super(key: key);
});
@override
Widget build(BuildContext context) {
return LayoutBuilder(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import 'package:paisa/features/transaction/domain/entities/transaction_entity.da

class AccountTransactionsPage extends StatelessWidget {
const AccountTransactionsPage({
Key? key,
super.key,
required this.accountId,
required this.summaryController,
}) : super(key: key);
});

final int accountId;
final SummaryController summaryController;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ final GlobalKey<FormState> _form = GlobalKey<FormState>();

class AccountPage extends StatefulWidget {
const AccountPage({
Key? key,
super.key,
this.accountId,
}) : super(key: key);
});

final int? accountId;

Expand Down
16 changes: 8 additions & 8 deletions lib/features/account/presentation/widgets/account_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import 'package:paisa/core/common_enum.dart';

class AccountCard extends StatefulWidget {
const AccountCard({
Key? key,
super.key,
required this.totalBalance,
required this.cardHolder,
required this.bankName,
Expand All @@ -20,7 +20,7 @@ class AccountCard extends StatefulWidget {
required this.expense,
this.onDelete,
this.onTap,
}) : super(key: key);
});

final String bankName;
final String cardHolder;
Expand Down Expand Up @@ -75,7 +75,7 @@ class _AccountCardState extends State<AccountCard>

class MobileAccountCard extends StatelessWidget {
const MobileAccountCard({
Key? key,
super.key,
required this.totalBalance,
required this.cardHolder,
required this.bankName,
Expand All @@ -84,7 +84,7 @@ class MobileAccountCard extends StatelessWidget {
this.onTap,
required this.income,
required this.expense,
}) : super(key: key);
});

final String bankName;
final String cardHolder;
Expand Down Expand Up @@ -214,7 +214,7 @@ class AccountSummaryTail extends StatelessWidget {

class TabletAccountCard extends StatelessWidget {
const TabletAccountCard({
Key? key,
super.key,
required this.cardNumber,
required this.cardHolder,
required this.bankName,
Expand All @@ -223,7 +223,7 @@ class TabletAccountCard extends StatelessWidget {
this.onTap,
required this.income,
required this.expense,
}) : super(key: key);
});

final String bankName;
final String cardHolder;
Expand Down Expand Up @@ -369,7 +369,7 @@ class TabletAccountCard extends StatelessWidget {

class DesktopAccountCard extends StatelessWidget {
const DesktopAccountCard({
Key? key,
super.key,
required this.cardNumber,
required this.cardHolder,
required this.bankName,
Expand All @@ -378,7 +378,7 @@ class DesktopAccountCard extends StatelessWidget {
this.onTap,
required this.income,
required this.expense,
}) : super(key: key);
});

final String bankName;
final String cardHolder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import 'package:paisa/features/home/presentation/pages/summary/widgets/transacti

class AccountTransactionWidget extends StatelessWidget {
const AccountTransactionWidget({
Key? key,
super.key,
this.isScroll = false,
}) : super(key: key);
});

final bool isScroll;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import 'package:paisa/features/account/presentation/widgets/account_card.dart';

class AccountPageViewWidget extends StatefulWidget {
const AccountPageViewWidget({
Key? key,
super.key,
required this.accounts,
}) : super(key: key);
});

final List<AccountEntity> accounts;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import 'package:paisa/core/widgets/paisa_widget.dart';
import 'package:paisa/features/account/presentation/bloc/accounts_bloc.dart';

class CardTypeButtons extends StatelessWidget {
const CardTypeButtons({Key? key}) : super(key: key);
const CardTypeButtons({super.key});

void _update(BuildContext context, CardType type) {
BlocProvider.of<AccountBloc>(context).add(UpdateCardTypeEvent(type));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ final GlobalKey<FormState> _formKey = GlobalKey<FormState>();

class CategoryPage extends StatefulWidget {
const CategoryPage({
Key? key,
super.key,
this.categoryId,
}) : super(key: key);
});

final int? categoryId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import 'package:paisa/features/category/presentation/widgets/category_item_mobil

class CategoryListMobileWidget extends StatelessWidget {
const CategoryListMobileWidget({
Key? key,
super.key,
required this.categories,
}) : super(key: key);
});

final List<CategoryEntity> categories;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import 'package:paisa/features/category/presentation/widgets/category_item_table

class CategoryListTabletWidget extends StatelessWidget {
const CategoryListTabletWidget({
Key? key,
super.key,
required this.addCategoryBloc,
this.crossAxisCount = 1,
required this.categories,
}) : super(key: key);
});

final CategoryBloc addCategoryBloc;
final List<CategoryEntity> categories;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import 'package:paisa/features/category/data/model/category_model.dart';

class CategoryItemDesktopWidget extends StatelessWidget {
const CategoryItemDesktopWidget({
Key? key,
super.key,
required this.category,
required this.onPressed,
}) : super(key: key);
});

final CategoryModel category;
final VoidCallback onPressed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import 'package:paisa/features/category/domain/entities/category.dart';

class CategoryItemMobileWidget extends StatelessWidget {
const CategoryItemMobileWidget({
Key? key,
super.key,
required this.category,
}) : super(key: key);
});

final CategoryEntity category;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import 'package:paisa/features/category/domain/entities/category.dart';

class CategoryItemTabletWidget extends StatelessWidget {
const CategoryItemTabletWidget({
Key? key,
super.key,
required this.category,
required this.onPressed,
}) : super(key: key);
});

final CategoryEntity category;
final VoidCallback onPressed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import 'category_item_tablet_widget.dart';

class CategoryItemWidget extends StatelessWidget {
const CategoryItemWidget({
Key? key,
super.key,
required this.category,
required this.onPressed,
}) : super(key: key);
});

final CategoryEntity category;
final VoidCallback onPressed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import 'package:paisa/features/debit/presentation/cubit/debts_bloc.dart';

class DebtToggleButtonsWidget extends StatelessWidget {
const DebtToggleButtonsWidget({
Key? key,
super.key,
required this.debtsBloc,
}) : super(key: key);
});

final DebitBloc debtsBloc;

Expand Down
4 changes: 2 additions & 2 deletions lib/features/home/presentation/pages/home/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ final destinations = [

class LandingPage extends StatelessWidget {
const LandingPage({
Key? key,
}) : super(key: key);
super.key,
});

@override
Widget build(BuildContext context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import 'package:paisa/main.dart';

class SummaryPage extends StatelessWidget {
const SummaryPage({
Key? key,
}) : super(key: key);
super.key,
});

@override
Widget build(BuildContext context) {
Expand Down
Loading

0 comments on commit f79301e

Please sign in to comment.