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( Expanded(
child: Material( child: Material(
child: ScrollablePositionedList.builder( child: ScrollablePositionedList.separated(
padding: EdgeInsets.only( padding: EdgeInsets.only(
bottom: MediaQuery.of(context).padding.bottom + 20), bottom: MediaQuery.of(context).padding.bottom + 20),
reverse: reverse, reverse: reverse,
@@ -179,6 +179,10 @@ class ListSheet {
); );
}, },
itemScrollController: itemScrollController, 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( child: IconButton(
tooltip: '更多', tooltip: '更多',
style: ButtonStyle( style: ButtonStyle(
padding: MaterialStateProperty.all(EdgeInsets.zero), padding: WidgetStateProperty.all(EdgeInsets.zero),
), ),
onPressed: () { onPressed: () {
showModalBottomSheet( showModalBottomSheet(
@@ -122,6 +122,10 @@ class MorePanel extends StatelessWidget {
children: [ children: [
InkWell( InkWell(
onTap: () => Get.back(), onTap: () => Get.back(),
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(28),
topRight: Radius.circular(28),
),
child: Container( child: Container(
height: 35, height: 35,
padding: const EdgeInsets.only(bottom: 2), padding: const EdgeInsets.only(bottom: 2),

View File

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

View File

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