opt: danmaku bottomsheet

Closes #74

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-30 18:15:28 +08:00
parent 52f9b0f83c
commit 2973299e29
2 changed files with 12 additions and 9 deletions

View File

@@ -123,6 +123,8 @@ class _HeaderControlState extends State<HeaderControl> {
showModalBottomSheet(
elevation: 0,
context: context,
isScrollControlled: true,
clipBehavior: Clip.hardEdge,
backgroundColor: Colors.transparent,
builder: (context) {
return Container(
@@ -504,8 +506,6 @@ class _HeaderControlState extends State<HeaderControl> {
),
);
},
clipBehavior: Clip.hardEdge,
isScrollControlled: true,
);
}
@@ -1051,13 +1051,14 @@ class _HeaderControlState extends State<HeaderControl> {
await showModalBottomSheet(
context: context,
elevation: 0,
isScrollControlled: true,
backgroundColor: Colors.transparent,
builder: (BuildContext context) {
return StatefulBuilder(
builder: (BuildContext context, StateSetter setState) {
return Container(
width: double.infinity,
height: 600,
height: Get.height / 2,
clipBehavior: Clip.hardEdge,
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.surface,