Skip to content

Commit

Permalink
Merge pull request #110 from 0xbaggi/main
Browse files Browse the repository at this point in the history
Overflow removed on graphs page
  • Loading branch information
mikev-cw authored Jul 17, 2023
2 parents 6393061 + a4256a5 commit 30c71eb
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 30c71eb

Please sign in to comment.