Skip to content

Commit 2f69a7e

Browse files
fix main loader and back button hero tag (#45)
1 parent bfd6f78 commit 2f69a7e

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class MyApp extends HookConsumerWidget {
115115
future: provider.getJwt(),
116116
builder: (context, snapshot) {
117117
if (snapshot.connectionState == ConnectionState.waiting) {
118-
return UIUtils.loader;
118+
return buildMaterialApp(Center(child: UIUtils.loader));
119119
} else if (snapshot.hasData && snapshot.data != null) {
120120
return buildMaterialApp(const HomeScreen());
121121
} else {

lib/presentation/common/core/utils/ui_utils.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class UIUtils {
3131
/// A function that create the back button
3232
static FloatingActionButton createBackButton(BuildContext context) {
3333
return FloatingActionButton(
34+
heroTag: 'back_button',
3435
backgroundColor: ColorUtils.main,
3536
elevation: 4.0,
3637
child: Icon(

lib/presentation/settings/screens/edit_profile_screen.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ class EditProfileScreen extends HookConsumerWidget {
144144
bottom: 16,
145145
right: 80,
146146
child: FloatingActionButton(
147+
heroTag: 'save_button',
147148
backgroundColor: ColorUtils.main,
148149
elevation: 4.0,
149150
child: Icon(

0 commit comments

Comments
 (0)