mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-21 01:26:59 +08:00
opt ui
Closes #1050 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -27,10 +27,12 @@ class _LiveDmBlockPageState extends State<LiveDmBlockPage> {
|
||||
tag: Utils.generateRandomString(8),
|
||||
);
|
||||
late bool isPortrait;
|
||||
late EdgeInsets padding;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
isPortrait = context.isPortrait;
|
||||
padding = MediaQuery.viewPaddingOf(context);
|
||||
final theme = Theme.of(context);
|
||||
|
||||
Widget tabBar = TabBar(
|
||||
@@ -84,11 +86,9 @@ class _LiveDmBlockPageState extends State<LiveDmBlockPage> {
|
||||
|
||||
return Scaffold(
|
||||
resizeToAvoidBottomInset: false,
|
||||
appBar: AppBar(
|
||||
title: const Text('弹幕屏蔽'),
|
||||
),
|
||||
body: SafeArea(
|
||||
bottom: false,
|
||||
appBar: AppBar(title: const Text('弹幕屏蔽')),
|
||||
body: Padding(
|
||||
padding: EdgeInsets.only(left: padding.left, right: padding.right),
|
||||
child: Stack(
|
||||
clipBehavior: Clip.none,
|
||||
children: [
|
||||
@@ -151,7 +151,7 @@ class _LiveDmBlockPageState extends State<LiveDmBlockPage> {
|
||||
),
|
||||
Positioned(
|
||||
right: 16,
|
||||
bottom: 16 + MediaQuery.paddingOf(context).bottom,
|
||||
bottom: 16 + padding.bottom,
|
||||
child: FloatingActionButton(
|
||||
tooltip: '添加',
|
||||
onPressed: _addShieldKeyword,
|
||||
@@ -173,7 +173,7 @@ class _LiveDmBlockPageState extends State<LiveDmBlockPage> {
|
||||
top: 12,
|
||||
left: 12,
|
||||
right: 12,
|
||||
bottom: MediaQuery.paddingOf(context).bottom + 80,
|
||||
bottom: padding.bottom + 100,
|
||||
),
|
||||
child: Wrap(
|
||||
spacing: 12,
|
||||
|
||||
Reference in New Issue
Block a user