Skip to content

Commit

Permalink
import fix and other request
Browse files Browse the repository at this point in the history
  • Loading branch information
fres-sudo committed Apr 21, 2024
1 parent 40d61dd commit 5a123c2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class _HomePageState extends ConsumerState<HomePage> with Functions {
physics: const BouncingScrollPhysics(),
scrollDirection: Axis.horizontal,
itemBuilder: (context, i) {
if (i == accounts.length || accounts.isEmpty) {
if (i == accounts.length) {
return Padding(
padding: const EdgeInsets.fromLTRB(0, 4, 0, 16),
child: Container(
Expand Down
3 changes: 1 addition & 2 deletions lib/pages/onboarding_page/widgets/account_setup.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import 'package:flutter/services.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter/material.dart';
import 'package:sossoldi/model/currency.dart';
import 'package:sossoldi/providers/currency_provider.dart';
import '../../../constants/constants.dart';
import '../../../providers/accounts_provider.dart';
import '../../../providers/currency_provider.dart';
import '/constants/style.dart';

final showAccountIconsProvider = StateProvider.autoDispose<bool>((ref) => false);
Expand Down
6 changes: 3 additions & 3 deletions lib/pages/onboarding_page/widgets/add_budget.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:sossoldi/constants/functions.dart';
import 'package:sossoldi/constants/style.dart';
import 'package:sossoldi/providers/budgets_provider.dart';
import '../../../constants/functions.dart';
import '../../../constants/style.dart';
import '../../../model/budget.dart';
import '../../../model/category_transaction.dart';
import '../../../providers/budgets_provider.dart';

class AddBudget extends ConsumerStatefulWidget {
final CategoryTransaction category;
Expand Down
5 changes: 2 additions & 3 deletions lib/pages/onboarding_page/widgets/budget_setup.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import 'dart:ui';

import 'package:collection/collection.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:sossoldi/pages/onboarding_page/widgets/add_category_button.dart';
import 'package:sossoldi/pages/onboarding_page/widgets/category_button.dart';

import '/constants/constants.dart';
import '/constants/style.dart';
Expand All @@ -14,6 +11,8 @@ import '/pages/onboarding_page/widgets/account_setup.dart';
import '/pages/onboarding_page/widgets/add_budget.dart';
import '/providers/budgets_provider.dart';
import '/providers/categories_provider.dart';
import 'add_category_button.dart';
import 'category_button.dart';

class BudgetSetup extends ConsumerStatefulWidget {
const BudgetSetup({Key? key}) : super(key: key);
Expand Down
2 changes: 1 addition & 1 deletion lib/routes.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:sossoldi/pages/onboarding_page/onboarding_page.dart';

import 'pages/account_page/account_page.dart';
import 'pages/accounts/account_list.dart';
Expand All @@ -14,6 +13,7 @@ import 'pages/more_info_page/collaborators_page.dart';
import 'pages/more_info_page/more_info.dart';
import 'pages/more_info_page/privacy_policy.dart';
import 'pages/notifications/notifications_settings.dart';
import 'pages/onboarding_page/onboarding_page.dart';
import 'pages/planning_page/planning_page.dart';
import 'pages/search_page/search_page.dart';
import 'pages/settings_page.dart';
Expand Down

0 comments on commit 5a123c2

Please sign in to comment.