opt: fav follow bottomSheet

This commit is contained in:
guozhigq
2024-08-26 00:12:35 +08:00
parent 9f0995021e
commit 941b5cace7
7 changed files with 111 additions and 52 deletions

View File

@ -1,3 +1,4 @@
import 'package:bottom_sheet/bottom_sheet.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:pilipala/common/widgets/network_img_layer.dart';
@ -47,9 +48,21 @@ class FollowItem extends StatelessWidget {
height: 34,
child: TextButton(
onPressed: () async {
await Get.bottomSheet(
GroupPanel(mid: item.mid!),
isScrollControlled: true,
await showFlexibleBottomSheet(
bottomSheetColor: Colors.transparent,
minHeight: 1,
initHeight: 1,
maxHeight: 1,
context: Get.context!,
builder: (BuildContext context,
ScrollController scrollController, double offset) {
return GroupPanel(
mid: item.mid!,
scrollController: scrollController,
);
},
anchors: [1],
isSafeArea: true,
);
},
style: TextButton.styleFrom(