Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modified some uneccessary imports #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/project/app_pages/add_category.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:google_fonts/google_fonts.dart';
Expand Down Expand Up @@ -168,6 +167,7 @@ class _CategoryNameState extends State<CategoryName> {
return getTranslated(context, 'Category already exists');
}
}
return null;
},
decoration: InputDecoration(
border: InputBorder.none,
Expand Down
1 change: 0 additions & 1 deletion lib/project/app_pages/analysis.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:google_fonts/google_fonts.dart';
Expand Down
3 changes: 1 addition & 2 deletions lib/project/app_pages/calendar.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:collection';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_swipe_action_cell/core/cell.dart';
Expand All @@ -18,7 +17,6 @@ import 'package:money_assistant_2608/project/localization/methods.dart';
import 'package:table_calendar/table_calendar.dart';
import 'dart:io' show Platform;

import '../classes/input_model.dart';
import 'edit.dart';

class Calendar extends StatelessWidget {
Expand Down Expand Up @@ -372,6 +370,7 @@ class _CalendarBodyState extends State<CalendarBody> {
child: _buildEventsMarker(date, events),
);
}
return null;
},
),

Expand Down
1 change: 0 additions & 1 deletion lib/project/app_pages/edit.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:money_assistant_2608/project/classes/app_bar.dart';
import 'package:money_assistant_2608/project/classes/constants.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/project/app_pages/edit_expense_category.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:money_assistant_2608/project/classes/app_bar.dart';
import 'package:money_assistant_2608/project/classes/constants.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/project/app_pages/edit_income_category.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:money_assistant_2608'
'/project/classes/app_bar.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/project/app_pages/expense_category.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:money_assistant_2608/project/classes/app_bar.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/project/app_pages/income_category.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:money_assistant_2608/project/classes/app_bar.dart';
Expand Down
2 changes: 0 additions & 2 deletions lib/project/app_pages/input.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import 'dart:core';
import 'dart:io' show Platform;
import 'package:day_night_time_picker/day_night_time_picker.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_material_pickers/flutter_material_pickers.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:google_fonts/google_fonts.dart';
Expand Down
3 changes: 1 addition & 2 deletions lib/project/app_pages/others.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:core';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
Expand Down Expand Up @@ -41,7 +40,7 @@ class Other extends StatelessWidget {
CircleAvatar(
child: CircleAvatar(
child: Icon(
FontAwesomeIcons.smileBeam,
FontAwesomeIcons.faceSmileBeam,
color: Colors.black,
size: 71.sp,
),
Expand Down
1 change: 0 additions & 1 deletion lib/project/app_pages/select_date_format.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'package:money_assistant_2608/project/classes/constants.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/project/app_pages/select_icon.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:money_assistant_2608/project/classes/app_bar.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/project/auth_pages/sign_in.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_login/flutter_login.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/project/auth_pages/user_account.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:money_assistant_2608/project/classes/constants.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/project/classes/app_bar.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:money_assistant_2608/project/localization/methods.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/project/classes/chart_pie.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:money_assistant_2608/project/localization/methods.dart';
Expand Down
1 change: 1 addition & 0 deletions lib/project/classes/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Widget? connectionUI(AsyncSnapshot<List<InputModel>> snapshot) {
child: CircularProgressIndicator(),
);
}
return null;
}

List<CategoryItem> createItemList({
Expand Down
1 change: 0 additions & 1 deletion lib/project/classes/custom_toast.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:money_assistant_2608/project/classes/constants.dart';
Expand Down
2 changes: 0 additions & 2 deletions lib/project/classes/dropdown_box.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import 'dart:ui';
import 'package:provider/provider.dart';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:money_assistant_2608/project/database_management/shared_preferences_services.dart';
import 'package:money_assistant_2608/project/localization/methods.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/project/classes/keyboard.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:money_assistant_2608/project/classes/constants.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/project/classes/lockscreen.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_app_lock/flutter_app_lock.dart';
import 'package:flutter_screen_lock/configurations/input_button_config.dart';
Expand Down
11 changes: 2 additions & 9 deletions lib/project/classes/saveOrSaveAndDeleteButtons.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'dart:io' show Platform;
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:money_assistant_2608/project/classes/alert_dialog.dart';
Expand Down Expand Up @@ -36,10 +35,7 @@ class _SaveButtonState extends State<SaveButton> {
}
},
style: ElevatedButton.styleFrom(
padding: EdgeInsets.symmetric(vertical: 10.h, horizontal: 20.w),
primary: Color.fromRGBO(236, 158, 66, 1),
onPrimary: white,
onSurface: grey,
foregroundColor: white, backgroundColor: Color.fromRGBO(236, 158, 66, 1), padding: EdgeInsets.symmetric(vertical: 10.h, horizontal: 20.w), disabledForegroundColor: grey.withOpacity(0.38), disabledBackgroundColor: grey.withOpacity(0.12),
elevation: 10,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(18.0.r),
Expand Down Expand Up @@ -100,10 +96,7 @@ class SaveAndDeleteButton extends StatelessWidget {
}
},
style: ElevatedButton.styleFrom(
padding: EdgeInsets.symmetric(vertical: 10.h, horizontal: 20.w),
primary: white,
onPrimary: red,
onSurface: grey,
foregroundColor: red, backgroundColor: white, padding: EdgeInsets.symmetric(vertical: 10.h, horizontal: 20.w), disabledForegroundColor: grey.withOpacity(0.38), disabledBackgroundColor: grey.withOpacity(0.12),
side: BorderSide(
color: red,
width: 2.h,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import 'dart:convert';
import 'dart:io';
import 'dart:ui';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_boxicons/flutter_boxicons.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
Expand Down
5 changes: 1 addition & 4 deletions lib/project/home.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/painting.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:money_assistant_2608/project/classes/constants.dart';
import 'package:money_assistant_2608/project/database_management/sqflite_services.dart';
Expand Down Expand Up @@ -52,7 +49,7 @@ class _HomeState extends State<Home> {
appStoreIdentifier: '1582638369',
);

WidgetsBinding.instance?.addPostFrameCallback((_) async {
WidgetsBinding.instance.addPostFrameCallback((_) async {

await rateMyApp.init();
rateMyApp.conditions.forEach((condition) {
Expand Down
12 changes: 5 additions & 7 deletions lib/project/real_main.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:money_assistant_2608/project/auth_pages/sign_in.dart';
import 'database_management/shared_preferences_services.dart';
import 'localization/app_localization.dart';
import 'home.dart';

void realMain() async {
WidgetsFlutterBinding.ensureInitialized();
Expand Down Expand Up @@ -65,24 +63,24 @@ class _MyAppState extends State<MyApp> {
debugShowCheckedModeBanner: false,
theme: ThemeData(
textTheme: TextTheme(
headline3: TextStyle(
displaySmall: TextStyle(
fontFamily: 'OpenSans',
fontSize: 45.0,
color: Colors.deepOrangeAccent,
),
button: TextStyle(
labelLarge: TextStyle(
fontFamily: 'OpenSans',
),
subtitle1: TextStyle(fontFamily: 'NotoSans'),
bodyText2: TextStyle(fontFamily: 'NotoSans'),
titleMedium: TextStyle(fontFamily: 'NotoSans'),
bodyMedium: TextStyle(fontFamily: 'NotoSans'),
),
colorScheme: ColorScheme.fromSwatch(primarySwatch: Colors.indigo)
.copyWith(secondary: Colors.orange),
textSelectionTheme:
TextSelectionThemeData(cursorColor: Colors.amberAccent),
),
builder: (context, widget) => MediaQuery(
data: MediaQuery.of(context).copyWith(textScaleFactor: 1),
data: MediaQuery.of(context).copyWith(textScaler: TextScaler.linear(1)),
child: widget!,
),
home: SignIn(),
Expand Down