76 lines
2.6 KiB
Dart
76 lines
2.6 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:get/get.dart';
|
|
|
|
import '../../../utils/color_util.dart';
|
|
import '../../../utils/cus_behavior.dart';
|
|
import 'meeting_main_voice_logic.dart';
|
|
import 'meeting_main_voice_state.dart';
|
|
|
|
class MeetingMainVoiceComponent extends StatelessWidget {
|
|
MeetingMainVoiceComponent({Key? key}) : super(key: key);
|
|
|
|
final MeetingMainVoiceLogic logic = Get.put(MeetingMainVoiceLogic());
|
|
final MeetingMainVoiceState state = Get.find<MeetingMainVoiceLogic>().state;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
alignment: Alignment.center,
|
|
padding: const EdgeInsets.only(left: 22, right: 22),
|
|
color: ColorUtil.Color_57_57_57,
|
|
child: ScrollConfiguration(
|
|
behavior: CusBehavior(),
|
|
child: GridView.builder(
|
|
gridDelegate:
|
|
SliverGridDelegateWithFixedCrossAxisCount(
|
|
crossAxisCount: 3,
|
|
childAspectRatio: 0.7,
|
|
crossAxisSpacing: 20),
|
|
itemCount: 15,
|
|
itemBuilder: (BuildContext ctx, index) {
|
|
return Column(
|
|
children: [
|
|
SizedBox(height: 20.h),
|
|
Container(
|
|
decoration: BoxDecoration(
|
|
borderRadius: BorderRadius.circular(99),
|
|
image: DecorationImage(
|
|
fit: BoxFit.cover,
|
|
image: NetworkImage(
|
|
"https://ts4.cn.mm.bing.net/th?id=OIP-C.QDl_Z7HdQWX_XbVYgBLJLQAAAA&w=250&h=250&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
|
|
),
|
|
),
|
|
),
|
|
width: 76.w,
|
|
height: 76.h,
|
|
),
|
|
SizedBox(height: 6.h),
|
|
Row(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Image.asset(
|
|
'assets/images/meeting_main_speak1.png',
|
|
width: 22.w,
|
|
height: 22.h,
|
|
),
|
|
Text(
|
|
'张三啊',
|
|
style: TextStyle(
|
|
fontSize: 12.sp,
|
|
color: ColorUtil.Color_255_255_255),
|
|
)
|
|
],
|
|
),
|
|
],
|
|
);
|
|
})),
|
|
);
|
|
}
|
|
|
|
@override
|
|
void dispose() {
|
|
Get.delete<MeetingMainVoiceLogic>();
|
|
}
|
|
}
|