Skip to content

Commit

Permalink
Merge pull request #41 from geekquest/fix/use-blue-as-primary-color
Browse files Browse the repository at this point in the history
Fix/use blue as primary color
  • Loading branch information
zikani03 authored Nov 27, 2023
2 parents 149baaf + 9fca329 commit b05eba6
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 19 deletions.
5 changes: 2 additions & 3 deletions app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ Future<void> main() async {
theme: ThemeData(
useMaterial3: true,
fontFamily: GoogleFonts.lato().fontFamily,
// colorSchemeSeed: Colors.deepPurple,
appBarTheme: AppBarTheme(
backgroundColor: Colors.deepPurple[800],
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: Colors.deepPurple[800],
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: Colors.deepPurple[800],
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: Colors.deepPurple[800],
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
2 changes: 1 addition & 1 deletion app/lib/presentation/widgets/card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class AccountCard extends StatelessWidget {
child: Icon(Icons.favorite,
color: isFavourite
? Colors.red[400]
: Colors.deepPurple),
: Colors.grey),
),
const InkWell(
//Todo: Add a dropdown menu
Expand Down
12 changes: 6 additions & 6 deletions app/lib/presentation/widgets/nav_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class BottomNavBar extends StatelessWidget {
@override
Widget build(BuildContext context) {
return BottomAppBar(
color: Color.fromARGB(255, 15, 91, 254),
color: const Color.fromARGB(255, 15, 91, 254),
shape: const CircularNotchedRectangle(),
padding:
EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom),
Expand Down 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 b05eba6

Please sign in to comment.