Browse Source

修改会议助手

newdev_shunjiawei
tanlongsheng 1 year ago
parent
commit
5811728e1d
  1. 2
      lib/modules/meeting/controllers/meeting_controller.dart
  2. 12
      lib/modules/meeting/views/meeting_home_view.dart
  3. 170
      lib/modules/meeting/views/meeting_view.dart

2
lib/modules/meeting/controllers/meeting_controller.dart

@ -15,6 +15,8 @@ class MeetingController extends GetxController {
const MeetingMineView(), const MeetingMineView(),
]; ];
int type = 1;
RxInt pageIndex = 0.obs; RxInt pageIndex = 0.obs;
RxMap user = {}.obs; RxMap user = {}.obs;

12
lib/modules/meeting/views/meeting_home_view.dart

@ -87,8 +87,8 @@ class _MeetingHomeViewState extends State<MeetingHomeView>
vertical: 10.w, vertical: 10.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: isDarkMode color: isDarkMode
? MeetingUIUtils.getTranslucentWhite(0.05) ? MeetingUIUtils.getTranslucentWhite(0.05)
: MeetingUIUtils.getCardColor(isDarkMode), : MeetingUIUtils.getCardColor(isDarkMode),
borderRadius: BorderRadius.circular(12.w), borderRadius: BorderRadius.circular(12.w),
boxShadow: MeetingUIUtils.getCardShadow(isDarkMode), boxShadow: MeetingUIUtils.getCardShadow(isDarkMode),
@ -127,8 +127,8 @@ class _MeetingHomeViewState extends State<MeetingHomeView>
vertical: 10.w, vertical: 10.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: isDarkMode color: isDarkMode
? MeetingUIUtils.getTranslucentWhite(0.05) ? MeetingUIUtils.getTranslucentWhite(0.05)
: MeetingUIUtils.getCardColor(isDarkMode), : MeetingUIUtils.getCardColor(isDarkMode),
borderRadius: BorderRadius.circular(50.w), borderRadius: BorderRadius.circular(50.w),
boxShadow: MeetingUIUtils.getCardShadow(isDarkMode), boxShadow: MeetingUIUtils.getCardShadow(isDarkMode),
@ -220,8 +220,8 @@ class _MeetingHomeViewState extends State<MeetingHomeView>
padding: EdgeInsets.symmetric(horizontal: 15.w, vertical: 10.w), padding: EdgeInsets.symmetric(horizontal: 15.w, vertical: 10.w),
margin: EdgeInsets.symmetric(vertical: 5.w), margin: EdgeInsets.symmetric(vertical: 5.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: isDarkMode color: isDarkMode
? MeetingUIUtils.getTranslucentWhite(0.05) ? MeetingUIUtils.getTranslucentWhite(0.05)
: MeetingUIUtils.getCardColor(isDarkMode), : MeetingUIUtils.getCardColor(isDarkMode),
borderRadius: BorderRadius.circular(12.w), borderRadius: BorderRadius.circular(12.w),
boxShadow: MeetingUIUtils.getCardShadow(isDarkMode), boxShadow: MeetingUIUtils.getCardShadow(isDarkMode),

170
lib/modules/meeting/views/meeting_view.dart

@ -30,93 +30,97 @@ class MeetingView extends GetView<MeetingController> {
child: const FiltrateDrawer(), child: const FiltrateDrawer(),
), ),
drawerEnableOpenDragGesture: false, drawerEnableOpenDragGesture: false,
bottomNavigationBar: Stack( bottomNavigationBar: controller.type == 0
alignment: Alignment.center, ? Stack(
clipBehavior: Clip.none, alignment: Alignment.center,
children: [ clipBehavior: Clip.none,
Obx( children: [
() => BottomNavigationBar( Obx(
items: const [ () => BottomNavigationBar(
BottomNavigationBarItem( items: const [
icon: Icon(Icons.folder_outlined), BottomNavigationBarItem(
activeIcon: Icon(Icons.folder), icon: Icon(Icons.folder_outlined),
label: '文件', activeIcon: Icon(Icons.folder),
), label: '文件',
BottomNavigationBarItem( ),
icon: SizedBox(), BottomNavigationBarItem(
label: '', icon: SizedBox(),
), label: '',
BottomNavigationBarItem( ),
icon: Icon(Icons.person_outline), BottomNavigationBarItem(
activeIcon: Icon(Icons.person), icon: Icon(Icons.person_outline),
label: '我的', activeIcon: Icon(Icons.person),
), label: '我的',
], ),
backgroundColor: ],
isDarkMode ? const Color(0xFF1A1A1A) : Colors.white, backgroundColor:
currentIndex: controller.pageIndex.value, isDarkMode ? const Color(0xFF1A1A1A) : Colors.white,
unselectedItemColor: Colors.grey, currentIndex: controller.pageIndex.value,
selectedItemColor: isDarkMode ? Colors.white : Colors.blue, unselectedItemColor: Colors.grey,
unselectedFontSize: 10.sp, selectedItemColor: isDarkMode ? Colors.white : Colors.blue,
selectedFontSize: 10.sp, unselectedFontSize: 10.sp,
onTap: (int index) { selectedFontSize: 10.sp,
if (index == 1 || index == controller.pageIndex.value) return; onTap: (int index) {
if (index == 0) { if (index == 1 || index == controller.pageIndex.value)
controller.pageIndex.value = 0; return;
controller.pageController.jumpToPage(0); if (index == 0) {
} else { controller.pageIndex.value = 0;
controller.pageIndex.value = 2; controller.pageController.jumpToPage(0);
controller.pageController.jumpToPage(1); } else {
} controller.pageIndex.value = 2;
}, controller.pageController.jumpToPage(1);
), }
), },
Positioned(
top: -18.w,
child: GestureDetector(
onTap: () {
Get.bottomSheet(
BackdropFilter(
filter: ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0),
child: const NavigationBarBottomSheet(),
), ),
isScrollControlled: true,
);
},
child: Container(
width: 60.w,
height: 60.w,
padding: EdgeInsets.all(5.w),
alignment: Alignment.center,
decoration: BoxDecoration(
color: isDarkMode ? const Color(0xFF1A1A1A) : Colors.white,
borderRadius: BorderRadius.circular(60.w),
boxShadow: [
BoxShadow(
color: Colors.black
.withValues(alpha: isDarkMode ? 0.3 : 0.1),
blurRadius: 8,
offset: const Offset(0, 2),
),
],
), ),
child: Container( Positioned(
alignment: Alignment.center, top: -18.w,
decoration: BoxDecoration( child: GestureDetector(
color: MeetingUIUtils.getButtonColor(isDarkMode), onTap: () {
borderRadius: BorderRadius.circular(60.w), Get.bottomSheet(
), BackdropFilter(
child: Icon( filter: ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0),
Icons.add, child: const NavigationBarBottomSheet(),
color: Colors.white, ),
size: 30.w, isScrollControlled: true,
);
},
child: Container(
width: 60.w,
height: 60.w,
padding: EdgeInsets.all(5.w),
alignment: Alignment.center,
decoration: BoxDecoration(
color:
isDarkMode ? const Color(0xFF1A1A1A) : Colors.white,
borderRadius: BorderRadius.circular(60.w),
boxShadow: [
BoxShadow(
color: Colors.black
.withValues(alpha: isDarkMode ? 0.3 : 0.1),
blurRadius: 8,
offset: const Offset(0, 2),
),
],
),
child: Container(
alignment: Alignment.center,
decoration: BoxDecoration(
color: MeetingUIUtils.getButtonColor(isDarkMode),
borderRadius: BorderRadius.circular(60.w),
),
child: Icon(
Icons.add,
color: Colors.white,
size: 30.w,
),
),
),
), ),
), ),
), ],
), )
), : null,
],
),
); );
} }
} }

Loading…
Cancel
Save