mod: morepanel

This commit is contained in:
bggRGjQaUbCoE
2024-08-27 13:35:31 +08:00
parent 6e6f53bf79
commit 4c201af21a
4 changed files with 15 additions and 3 deletions

View File

@@ -165,7 +165,7 @@ class ListSheet {
),
Expanded(
child: Material(
child: ScrollablePositionedList.builder(
child: ScrollablePositionedList.separated(
padding: EdgeInsets.only(
bottom: MediaQuery.of(context).padding.bottom + 20),
reverse: reverse,
@@ -179,6 +179,10 @@ class ListSheet {
);
},
itemScrollController: itemScrollController,
separatorBuilder: (_, index) => Divider(
height: 1,
color: Theme.of(context).dividerColor.withOpacity(0.1),
),
),
),
),

View File

@@ -88,7 +88,7 @@ class AuthorPanel extends StatelessWidget {
child: IconButton(
tooltip: '更多',
style: ButtonStyle(
padding: MaterialStateProperty.all(EdgeInsets.zero),
padding: WidgetStateProperty.all(EdgeInsets.zero),
),
onPressed: () {
showModalBottomSheet(
@@ -122,6 +122,10 @@ class MorePanel extends StatelessWidget {
children: [
InkWell(
onTap: () => Get.back(),
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(28),
topRight: Radius.circular(28),
),
child: Container(
height: 35,
padding: const EdgeInsets.only(bottom: 2),

View File

@@ -92,7 +92,7 @@ class _PagesPanelState extends State<PagesPanel> {
height: 34,
child: TextButton(
style: ButtonStyle(
padding: MaterialStateProperty.all(EdgeInsets.zero),
padding: WidgetStateProperty.all(EdgeInsets.zero),
),
onPressed: () {
ListSheet(

View File

@@ -1110,6 +1110,10 @@ class MorePanel extends StatelessWidget {
children: [
InkWell(
onTap: () => Get.back(),
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(28),
topRight: Radius.circular(28),
),
child: Container(
height: 35,
padding: const EdgeInsets.only(bottom: 2),