Skip to content

Commit

Permalink
fix(navigation-tab): fix action button's padding (#445)
Browse files Browse the repository at this point in the history
* refactor: fix padding

* feat: add appbar to closed sks screen

* refactor/rebase

* refactor/separate-padding-values

---------

Co-authored-by: Tomasz Trela <[email protected]>
  • Loading branch information
tomasz-trela and Tomasz Trela authored Nov 30, 2024
1 parent 17d1507 commit 4cb397f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/config/ui_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ abstract class SksConfig {
static const sizedBoxWidth = 5.0;
static const radius = 8.0;
static const innerPadding = EdgeInsets.symmetric(horizontal: 8, vertical: 4);
static const outerPaddingLarge = EdgeInsets.only(right: 24, bottom: 2);
static const outerPadding = EdgeInsets.only(right: 12, bottom: 2);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class NotificationButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Padding(
padding: SksConfig.outerPadding,
padding: SksConfig.outerPaddingLarge,
child: MySplashTile(
// TODO(simon-the-shark): show dialog about our future intented use of notifications
onTap: requestFCMPermission,
Expand Down
5 changes: 5 additions & 0 deletions lib/features/sks-menu/presentation/sks_menu_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ class _SKSMenuLottieAnimation extends StatelessWidget {
Widget build(BuildContext context) {
Logger().e(error.toString());
return Scaffold(
appBar: DetailViewAppBar(
actions: const [
SksUserDataButton(),
],
),
body: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expand Down

0 comments on commit 4cb397f

Please sign in to comment.