Skip to content

Commit

Permalink
fix main loader and back button hero tag
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminCanape committed Feb 6, 2024
1 parent bfd6f78 commit ab3245f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class MyApp extends HookConsumerWidget {
future: provider.getJwt(),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.waiting) {
return UIUtils.loader;
return buildMaterialApp(Center(child: UIUtils.loader));
} else if (snapshot.hasData && snapshot.data != null) {
return buildMaterialApp(const HomeScreen());
} else {
Expand Down
1 change: 1 addition & 0 deletions lib/presentation/common/core/utils/ui_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class UIUtils {
/// A function that create the back button
static FloatingActionButton createBackButton(BuildContext context) {
return FloatingActionButton(
heroTag: 'back_button',
backgroundColor: ColorUtils.main,
elevation: 4.0,
child: Icon(
Expand Down
1 change: 1 addition & 0 deletions lib/presentation/settings/screens/edit_profile_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ class EditProfileScreen extends HookConsumerWidget {
bottom: 16,
right: 80,
child: FloatingActionButton(
heroTag: 'save_button',
backgroundColor: ColorUtils.main,
elevation: 4.0,
child: Icon(
Expand Down

0 comments on commit ab3245f

Please sign in to comment.