diff --git a/mobile/lib/common/scrollable_safe_area.dart b/mobile/lib/common/scrollable_safe_area.dart index f00f45a43..dee3b8166 100644 --- a/mobile/lib/common/scrollable_safe_area.dart +++ b/mobile/lib/common/scrollable_safe_area.dart @@ -3,14 +3,17 @@ import 'package:flutter/cupertino.dart'; class ScrollableSafeArea extends StatelessWidget { const ScrollableSafeArea({ required this.child, + this.bottom = true, Key? key, }) : super(key: key); + final bool bottom; final Widget child; @override Widget build(BuildContext context) { return SafeArea( + bottom: bottom, child: LayoutBuilder( builder: (BuildContext context, BoxConstraints viewportConstraints) => SingleChildScrollView( diff --git a/mobile/lib/features/welcome/welcome_screen.dart b/mobile/lib/features/welcome/welcome_screen.dart index 99a275d05..b44f1b94d 100644 --- a/mobile/lib/features/welcome/welcome_screen.dart +++ b/mobile/lib/features/welcome/welcome_screen.dart @@ -2,6 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:get_10101/common/application/switch.dart'; import 'package:get_10101/common/color.dart'; +import 'package:get_10101/common/scrollable_safe_area.dart'; import 'package:get_10101/features/welcome/loading_screen.dart'; import 'package:get_10101/ffi.dart'; import 'package:get_10101/logger/logger.dart'; @@ -34,7 +35,7 @@ class _WelcomeScreenState extends State { value: SystemUiOverlayStyle.dark, child: Scaffold( backgroundColor: Colors.white, - body: SafeArea( + body: ScrollableSafeArea( bottom: false, child: Container( color: Colors.white,