Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
CTalvio committed Aug 2, 2023
1 parent a6d0360 commit f7c1dbd
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions lib/user/pages/user_page_success.dart
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,8 @@ class _UserPageSuccessState extends State<UserPageSuccess> with TickerProviderSt
if (widget.isAccountUser)
Expanded(
child: Padding(
padding: savedToggle ? const EdgeInsets.only(right: 8.0) : const EdgeInsets.only(left: 8.0) ,
padding: savedToggle ? const EdgeInsets.only(right: 8.0) : const EdgeInsets.only(left: 8.0),
child: TextButton(

onPressed: () {
setState(() {
savedToggle = !savedToggle;
Expand All @@ -172,21 +171,23 @@ class _UserPageSuccessState extends State<UserPageSuccess> with TickerProviderSt
fixedSize: const Size.fromHeight(35),
padding: EdgeInsets.zero,
),
child: !savedToggle ? const Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(width: 8.0),
Text('Saved'),
Icon(Icons.chevron_right),
],
):const Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(Icons.chevron_left),
Text('History'),
SizedBox(width: 8.0),
],
),
child: !savedToggle
? const Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(width: 8.0),
Text('Saved'),
Icon(Icons.chevron_right),
],
)
: const Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(Icons.chevron_left),
Text('History'),
SizedBox(width: 8.0),
],
),
),
),
),
Expand Down

0 comments on commit f7c1dbd

Please sign in to comment.