Skip to content

Commit

Permalink
Update statistics_page.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbaggi committed Jul 15, 2023
1 parent 6393061 commit a4256a5
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions lib/pages/statistics_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class _StatsPageState extends ConsumerState<StatsPage> with Functions {
fontWeight: FontWeight.w600,
),
textAlign: TextAlign.left,
),
),
),
),
Card(
Expand Down Expand Up @@ -181,20 +181,22 @@ class _StatsPageState extends ConsumerState<StatsPage> with Functions {
SizedBox(
height: 12,
width: double.infinity,
child: Row(
child: Row(
children: [
Container(
width: MediaQuery.of(context).size.width * 0.9 * (account.startingValue.toDouble()/max),
decoration: const BoxDecoration(
width: MediaQuery.of(context).size.width * 0.9 * (account.startingValue.toDouble()/max) - (account.startingValue.toDouble()/max > 0 ? 1 : 0),
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(4.0),
bottomLeft: Radius.circular(4.0),
topLeft: const Radius.circular(4.0),
bottomLeft: const Radius.circular(4.0),
topRight: Radius.circular(account.startingValue.toDouble()/max == 1 ? 4.0 : 0.0),
bottomRight: Radius.circular(account.startingValue.toDouble()/max == 1 ? 4.0 : 0.0),
),
color: blue3,
),
),
Container(
width: MediaQuery.of(context).size.width * 0.9 *(1 - (account.startingValue.toDouble()/max)),
width: account.startingValue.toDouble()/max == 1 ? 0 : MediaQuery.of(context).size.width * 0.9 * (1 - (account.startingValue.toDouble()/max)) - 1,
decoration: const BoxDecoration(
borderRadius: BorderRadius.only(
topRight: Radius.circular(4.0),
Expand Down

0 comments on commit a4256a5

Please sign in to comment.