Closes #1050

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-20 22:04:39 +08:00
parent e096ebcbba
commit 76f1d0129b
171 changed files with 2190 additions and 2063 deletions

View File

@@ -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,