📱 Fix some layout issues on device which has no safe area

This commit is contained in:
2024-12-02 22:01:02 +08:00
parent 441df4090f
commit 7a617a4f8c
3 changed files with 122 additions and 132 deletions

View File

@ -1,4 +1,5 @@
import 'dart:ui';
import 'dart:math' as math;
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
@ -396,7 +397,7 @@ class _PostPublisherScreenState extends State<PostPublisherScreen>
],
),
SliverToBoxAdapter(child: const Divider(height: 1)),
Gap(MediaQuery.of(context).padding.top),
Gap(math.max(MediaQuery.of(context).padding.top, 50)),
],
),
),