Skip to content

Commit

Permalink
Fix: ListTile display bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AmosHuKe committed Oct 27, 2024
1 parent 6a80722 commit 27238fc
Showing 1 changed file with 32 additions and 29 deletions.
61 changes: 32 additions & 29 deletions lib/views/menu_screen/menu_screen_left.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,40 +33,43 @@ class MenuScreenLeftBody extends StatelessWidget {

@override
Widget build(BuildContext context) {
return ListView(
physics: const AlwaysScrollableScrollPhysics(
parent: BouncingScrollPhysics(),
),
children: [
const Padding(
padding: EdgeInsets.only(
top: 72,
bottom: 48,
left: 24,
right: 24,
),
child: Header(),
return Scaffold(
backgroundColor: Colors.transparent,
body: ListView(
physics: const AlwaysScrollableScrollPhysics(
parent: BouncingScrollPhysics(),
),
const Padding(
padding: EdgeInsets.only(
bottom: 24,
left: 24,
right: 24,
children: [
const Padding(
padding: EdgeInsets.only(
top: 72,
bottom: 48,
left: 24,
right: 24,
),
child: Header(),
),
const Padding(
padding: EdgeInsets.only(
bottom: 24,
left: 24,
right: 24,
),
child: Menu(),
),
child: Menu(),
),

/// 插画
BlockSemanticsToDrawerClosed(
child: Container(
padding: const EdgeInsets.only(left: 24, bottom: 24),
child: Image.asset(
'assets/images/woolly/woolly-comet-2.png',
width: 240,
/// 插画
BlockSemanticsToDrawerClosed(
child: Container(
padding: const EdgeInsets.only(left: 24, bottom: 24),
child: Image.asset(
'assets/images/woolly/woolly-comet-2.png',
width: 240,
),
),
),
),
],
],
),
);
}
}
Expand Down

0 comments on commit 27238fc

Please sign in to comment.