Skip to content

Commit

Permalink
#108 UX improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
GleammerRay committed Jun 5, 2024
1 parent ae5879b commit 9debfe4
Showing 1 changed file with 2 additions and 39 deletions.
41 changes: 2 additions & 39 deletions lib/screens/main_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -482,39 +482,6 @@ class _MainScreen extends State<MainScreen>
}
},
)),
PassyPadding(ThreeWidgetButton(
left: const Padding(
padding: EdgeInsets.only(right: 30),
child: Icon(CupertinoIcons.globe),
),
right: const Icon(Icons.arrow_forward_ios_rounded),
center: Text(localizations.searchAllEntries),
onPressed: () => Navigator.pushNamed(context, SearchScreen.routeName,
arguments: SearchScreenArgs(
entryType: null,
title: localizations.allEntries,
builder: _searchBuilder,
)),
)),
PassyPadding(ThreeWidgetButton(
left: const Padding(
padding: EdgeInsets.only(right: 30),
child: Icon(Icons.qr_code_scanner),
),
right: const Icon(Icons.arrow_forward_ios_rounded),
center: Text(localizations.synchronize),
onPressed: () {
if (!_account.isRSAKeypairLoaded) {
showSnackBar(
message: localizations.settingUpSynchronization,
icon: const Icon(CupertinoIcons.clock_solid,
color: PassyTheme.darkContentColor),
);
return;
}
showSynchronizationDialog(context);
},
)),
PassyPadding(ThreeWidgetButton(
left: const Padding(
padding: EdgeInsets.only(right: 30),
Expand Down Expand Up @@ -663,23 +630,21 @@ class _MainScreen extends State<MainScreen>
_screenButtons[0],
_screenButtons[3],
_screenButtons[6],
if (_screenButtons.length == 10) _screenButtons[9],
],
)),
Expanded(
child: ListView(
children: [
_screenButtons[1],
_screenButtons[4],
_screenButtons[7],
if (_screenButtons.length == 8) _screenButtons[7],
],
)),
Expanded(
child: ListView(
children: [
_screenButtons[2],
_screenButtons[5],
_screenButtons[8],
],
))
]);
Expand All @@ -692,7 +657,6 @@ class _MainScreen extends State<MainScreen>
_screenButtons[2],
_screenButtons[4],
_screenButtons[6],
_screenButtons[8],
]),
),
Expanded(
Expand All @@ -701,8 +665,7 @@ class _MainScreen extends State<MainScreen>
_screenButtons[1],
_screenButtons[3],
_screenButtons[5],
_screenButtons[7],
if (_screenButtons.length == 10) _screenButtons[9],
if (_screenButtons.length == 8) _screenButtons[7],
],
)),
]);
Expand Down

0 comments on commit 9debfe4

Please sign in to comment.