Skip to content

Commit

Permalink
update pubspec
Browse files Browse the repository at this point in the history
  • Loading branch information
Nialixus committed May 15, 2024
1 parent c648f1e commit 310121b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 3 additions & 1 deletion lib/src/shared/models/extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ extension BuildContextExtension on BuildContext {
..showSnackBar(SnackBar(
backgroundColor: Colors.transparent,
elevation: 0.0,
margin: EdgeInsets.only(bottom: height - 150.0),
margin: EdgeInsets.only(
bottom: height - (150.0 + MediaQuery.of(this).padding.top),
),
behavior: SnackBarBehavior.floating,
content: AwesomeSnackbarContent(
title: title,
Expand Down
12 changes: 9 additions & 3 deletions lib/src/shared/models/routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ final class Routes {
builder: (_, __) => BlocProvider(
create: (_) => LoginRequest(),
child: const SelectionArea(
child: LoginPage(),
child: SafeArea(
child: LoginPage(),
),
),
),
);
Expand All @@ -17,7 +19,9 @@ final class Routes {
builder: (_, __) => BlocProvider(
create: (_) => HomeRequest(),
child: const SelectionArea(
child: HomePage(),
child: SafeArea(
child: HomePage(),
),
),
),
);
Expand All @@ -27,7 +31,9 @@ final class Routes {
builder: (_, state) => BlocProvider(
create: (_) => UserRequest(id: state.pathParameters.of('id')),
child: const SelectionArea(
child: UserPage(),
child: SafeArea(
child: UserPage(),
),
),
),
);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: flutter_reqres_test
description: Flutter test with REQRES API.
description: Flutter sample project with MVC architecture, ReqRes.in API integration, and Cubit for state management.

publish_to: 'none'

Expand Down

0 comments on commit 310121b

Please sign in to comment.