opt: fav follow bottomSheet

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

View File

@ -1,5 +1,6 @@
import 'dart:async';
import 'package:bottom_sheet/bottom_sheet.dart';
import 'package:flutter/material.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:get/get.dart';
@ -523,9 +524,21 @@ class VideoIntroController extends GetxController {
// 设置关注分组
void setFollowGroup() {
Get.bottomSheet(
GroupPanel(mid: videoDetail.value.owner!.mid!),
isScrollControlled: true,
showFlexibleBottomSheet(
bottomSheetColor: Colors.transparent,
minHeight: 0.6,
initHeight: 0.6,
maxHeight: 1,
context: Get.context!,
builder: (BuildContext context, ScrollController scrollController,
double offset) {
return GroupPanel(
mid: videoDetail.value.owner!.mid!,
scrollController: scrollController,
);
},
anchors: [0.6, 1],
isSafeArea: true,
);
}