mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-02-02 14:16:58 +00:00
refactor(ui): Remove SafeArea where they are not needed
This commit is contained in:
parent
80547785d3
commit
c271331f29
|
@ -21,8 +21,7 @@ class _OnboardingPageState extends State<OnboardingPage> {
|
|||
}
|
||||
|
||||
@override
|
||||
Widget build(final BuildContext context) => SafeArea(
|
||||
child: Scaffold(
|
||||
Widget build(final BuildContext context) => Scaffold(
|
||||
body: PageView(
|
||||
controller: pageController,
|
||||
children: [
|
||||
|
@ -30,7 +29,6 @@ class _OnboardingPageState extends State<OnboardingPage> {
|
|||
_withPadding(secondPage()),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Widget _withPadding(final Widget child) => Padding(
|
||||
|
@ -60,8 +58,7 @@ class _OnboardingPageState extends State<OnboardingPage> {
|
|||
style: Theme.of(context).textTheme.bodyMedium,
|
||||
),
|
||||
const SizedBox(height: 32),
|
||||
Flexible(
|
||||
child: Center(
|
||||
Center(
|
||||
child: Image.asset(
|
||||
_fileName(
|
||||
context: context,
|
||||
|
@ -71,7 +68,6 @@ class _OnboardingPageState extends State<OnboardingPage> {
|
|||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
@ -52,8 +52,7 @@ class _RootPageState extends State<RootPage> with TickerProviderStateMixin {
|
|||
final bool isReady = context.watch<ServerInstallationCubit>().state
|
||||
is ServerInstallationFinished;
|
||||
|
||||
return SafeArea(
|
||||
child: Provider<ChangeTab>(
|
||||
return Provider<ChangeTab>(
|
||||
create: (final _) => ChangeTab(tabController.animateTo),
|
||||
child: Scaffold(
|
||||
body: TabBarView(
|
||||
|
@ -86,7 +85,6 @@ class _RootPageState extends State<RootPage> with TickerProviderStateMixin {
|
|||
)
|
||||
: null,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue