Skip to content

Commit

Permalink
ui improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
praslnx8 committed Jul 6, 2024
1 parent 163664d commit 018d96a
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 14 deletions.
14 changes: 13 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,19 @@ class WealthWaveApp extends StatelessWidget {
title: 'Wealth Wave',
debugShowCheckedModeBanner: false,
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.teal),
colorScheme: const ColorScheme.light(
primary: Colors.teal, // A deep green, conveys stability and growth
secondary: Colors.white, // A lighter teal, for a refreshing, modern feel
surface: Colors.white, // A very light teal for backgrounds, provides contrast
background: Colors.white, // A soft blue, calming and trustworthy
error: Colors.red, // Standard error color for visibility
onPrimary: Colors.white, // White text/icons on primary color for readability
onSecondary: Colors.black, // Black text/icons on secondary for contrast and readability
onSurface: Colors.black, // Black text/icons on surface color for readability
onBackground: Colors.black, // Black text/icons on background for readability
onError: Colors.white, // White text/icons on error color for readability
brightness: Brightness.light, // Overall brightness, light theme
),
useMaterial3: true,
),
onGenerateRoute: (settings) {
Expand Down
1 change: 0 additions & 1 deletion lib/ui/pages/baskets_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class _BasketsPage
return Scaffold(
appBar: AppBar(
title: const Text('Baskets'),
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
),
body: Center(
child: ListView.builder(
Expand Down
11 changes: 4 additions & 7 deletions lib/ui/pages/dashboard_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ class _DashboardPage
final irrComposition = snapshot.irrComposition.entries.toList();
irrComposition.sort((a, b) => a.key.compareTo(b.key));

return Scaffold(
appBar: AppBar(
title: const Text('Investment Portfolio Dashboard'),
),
body: SingleChildScrollView(
return SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.all(AppDimen.defaultPadding),
child: Column(
Expand Down Expand Up @@ -78,8 +74,7 @@ class _DashboardPage
],
),
),
),
);
);
}

Widget _buildPieChart(Map<RiskLevel, double> data) {
Expand Down Expand Up @@ -226,11 +221,13 @@ class _DashboardPage
dataSource: invested,
xValueMapper: (data, _) => data.key,
yValueMapper: (data, _) => data.value,
color: Colors.blue,
),
StackedBarSeries(
dataSource: value,
xValueMapper: (data, _) => data.key,
yValueMapper: (data, _) => data.value,
color: Colors.green,
),
],
);
Expand Down
1 change: 0 additions & 1 deletion lib/ui/pages/expense_tags_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class _ExpenseTagsPage
return Scaffold(
appBar: AppBar(
title: const Text('Expense Tags'),
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
),
body: Center(
child: ListView.builder(
Expand Down
1 change: 0 additions & 1 deletion lib/ui/pages/goal_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class _GoalPage extends PageState<GoalViewState, GoalPage, GoalPresenter> {
return Scaffold(
appBar: AppBar(
title: const Text('Goal'),
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
),
body: SingleChildScrollView(
child: _goalWidget(context: context, goalVO: goalVO)));
Expand Down
1 change: 0 additions & 1 deletion lib/ui/pages/investment_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class _InvestmentPage extends PageState<InvestmentViewState, InvestmentPage,
return Scaffold(
appBar: AppBar(
title: const Text('Investment'),
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
),
body: SingleChildScrollView(
child: _investmentWidget(
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/pages/main_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class _MainPageState extends PageState<MainViewState, MainPage, MainPresenter> {
if (snapshot.contentLoading) {
return Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: const Text("Wealth Wave"),
),
body: const Center(
Expand All @@ -47,7 +46,6 @@ class _MainPageState extends PageState<MainViewState, MainPage, MainPresenter> {

return Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: const Text("Wealth Wave"),
actions: [
PopupMenuButton<int>(
Expand Down

0 comments on commit 018d96a

Please sign in to comment.