Skip to content

Commit

Permalink
chore: fix flutter analyze issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zikani03 committed Nov 27, 2023
1 parent 13039a3 commit 9fca329
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Future<void> main() async {
theme: ThemeData(
useMaterial3: true,
fontFamily: GoogleFonts.lato().fontFamily,
appBarTheme: AppBarTheme(
backgroundColor: const Color.fromARGB(255, 15, 91, 254),
appBarTheme: const AppBarTheme(
backgroundColor: Color.fromARGB(255, 15, 91, 254),
),
),
),
Expand Down
4 changes: 2 additions & 2 deletions app/lib/presentation/screens/favourites.dart
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ class Favourite extends StatelessWidget {
return SizedBox(
height: size.height,
width: size.width,
child: Center(
child: const Center(
child: CircularProgressIndicator(
color: const Color.fromARGB(255, 15, 91, 254),
color: Color.fromARGB(255, 15, 91, 254),
),
),
);
Expand Down
8 changes: 4 additions & 4 deletions app/lib/presentation/screens/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class Home extends StatelessWidget {
style: titleStyles,
),
centerTitle: true,
leading: Icon(
leading: const Icon(
Icons.ac_unit,
color: const Color.fromARGB(255, 15, 91, 254),
color: Color.fromARGB(255, 15, 91, 254),
),
bottom: PreferredSize(
preferredSize: const Size.fromHeight(50.0),
Expand Down Expand Up @@ -237,9 +237,9 @@ class Home extends StatelessWidget {
return SizedBox(
height: size.height,
width: size.width,
child: Center(
child: const Center(
child: CircularProgressIndicator(
color: const Color.fromARGB(255, 15, 91, 254),
color: Color.fromARGB(255, 15, 91, 254),
),
),
);
Expand Down
6 changes: 3 additions & 3 deletions app/lib/presentation/screens/splash_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ class _SplashscreenState extends State<Splashscreen> {
),
// ignore: prefer_const_constructors
Center(
child: Column(
child: const Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
const Text(
Text(
"Bankimoon",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 60,
color: Colors.white,
),
),
const SizedBox(
SizedBox(
height: 10,
),
SpinKitWave(
Expand Down
10 changes: 5 additions & 5 deletions app/lib/presentation/widgets/nav_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class BottomNavBar extends StatelessWidget {
},
),
// ignore: prefer_const_constructors
Text(
const Text(
'Favorites',
style: TextStyle(color: Colors.white),
),
Expand All @@ -63,15 +63,15 @@ class BottomNavBar extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: <Widget>[
IconButton(
icon: Icon(
icon: const Icon(
Icons.add,
color: Colors.white, // Set the icon color to white
),
onPressed: () {
Navigator.pushNamed(context, addAccount);
},
),
Text(
const Text(
'Add Account',
style: TextStyle(color: Colors.white),
),
Expand All @@ -81,13 +81,13 @@ class BottomNavBar extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: <Widget>[
IconButton(
icon: Icon(
icon: const Icon(
Icons.account_circle,
color: Colors.white, // Set the icon color to white
),
onPressed: () {},
),
Text(
const Text(
'My Accounts',
style: TextStyle(color: Colors.white),
),
Expand Down

0 comments on commit 9fca329

Please sign in to comment.