|
|
|
@ -1,7 +1,10 @@ |
|
|
|
import 'dart:io'; |
|
|
|
|
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
import 'package:get/get.dart'; |
|
|
|
|
|
|
|
import '../../../profile/controllers/profile_controller.dart'; |
|
|
|
import '../../controllers/meeting_mine_controller.dart'; |
|
|
|
|
|
|
|
class StatisticsBottomSheet extends StatefulWidget { |
|
|
|
@ -13,6 +16,7 @@ class StatisticsBottomSheet extends StatefulWidget { |
|
|
|
|
|
|
|
class _StatisticsBottomSheetState extends State<StatisticsBottomSheet> { |
|
|
|
final _mineController = Get.find<MeetingMineController>(); |
|
|
|
final _profileCtrl = Get.find<ProfileController>(); |
|
|
|
|
|
|
|
@override |
|
|
|
Widget build(BuildContext context) { |
|
|
|
@ -49,15 +53,27 @@ class _StatisticsBottomSheetState extends State<StatisticsBottomSheet> { |
|
|
|
margin: EdgeInsets.only(bottom: 10.w), |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.circular(50.w), |
|
|
|
image: const DecorationImage( |
|
|
|
image: NetworkImage( |
|
|
|
'https://pic8.iqiyipic.com/image/20250403/ed/a7/a_100013977_m_601_m75_318_424.avif'), |
|
|
|
fit: BoxFit.cover, |
|
|
|
), |
|
|
|
child: CircleAvatar( |
|
|
|
radius: 25.w, |
|
|
|
backgroundImage: _profileCtrl.localAvatar.value.isNotEmpty |
|
|
|
? FileImage(File(_profileCtrl.localAvatar.value)) |
|
|
|
: (_profileCtrl.userInfo.value.avatar.isNotEmpty |
|
|
|
? NetworkImage(_profileCtrl.userInfo.value.avatar) |
|
|
|
: null) as ImageProvider<Object>?, |
|
|
|
backgroundColor: Colors.grey[200], |
|
|
|
child: (_profileCtrl.localAvatar.value.isEmpty && |
|
|
|
_profileCtrl.userInfo.value.avatar.isEmpty) |
|
|
|
? Icon( |
|
|
|
Icons.person, |
|
|
|
size: 25.r, |
|
|
|
color: Colors.grey[600], |
|
|
|
) |
|
|
|
: null, |
|
|
|
), |
|
|
|
), |
|
|
|
Text( |
|
|
|
'tianming liu', |
|
|
|
_profileCtrl.userInfo.value.name, |
|
|
|
style: TextStyle( |
|
|
|
color: Colors.black87, |
|
|
|
fontSize: 20.sp, |
|
|
|
|