116 lines
4.1 KiB
Dart
116 lines
4.1 KiB
Dart
import 'dart:convert';
|
|
import 'dart:ui' as ui;
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
|
import 'package:aslan/app_localizations.dart';
|
|
import 'package:aslan/chatvibe_ui/components/text/at_text.dart';
|
|
import 'package:provider/provider.dart';
|
|
import 'package:aslan/chatvibe_core/constants/at_screen.dart';
|
|
import 'package:aslan/chatvibe_managers/rtc_manager.dart';
|
|
|
|
class EditRoomAnnouncementPage extends StatefulWidget {
|
|
EditRoomAnnouncementPage();
|
|
|
|
@override
|
|
_EditRoomAnnouncementPageState createState() =>
|
|
_EditRoomAnnouncementPageState();
|
|
}
|
|
|
|
class _EditRoomAnnouncementPageState extends State<EditRoomAnnouncementPage> {
|
|
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ClipRRect(
|
|
borderRadius: BorderRadius.all(Radius.circular(12.w)),
|
|
child: BackdropFilter(
|
|
filter: ui.ImageFilter.blur(sigmaX: 15, sigmaY: 15),
|
|
child: Container(
|
|
width: ScreenUtil().screenWidth * 0.75,
|
|
padding: EdgeInsets.symmetric(horizontal: 10.w),
|
|
decoration: BoxDecoration(color: Colors.black38),
|
|
child: Stack(
|
|
alignment: Alignment.center,
|
|
children: [
|
|
Column(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: [
|
|
SizedBox(height: 15.w),
|
|
text(
|
|
ATAppLocalizations.of(context)!.roomAnnouncement,
|
|
fontSize: 16.sp,
|
|
fontWeight: FontWeight.w600,
|
|
textColor: Colors.white,
|
|
),
|
|
SizedBox(height: 10.w),
|
|
Row(
|
|
children: [
|
|
Expanded(
|
|
child: Container(
|
|
margin: EdgeInsets.symmetric(horizontal: 15.w),
|
|
padding: EdgeInsets.only(
|
|
top: 5.w,
|
|
bottom: 10.w,
|
|
left: width(12),
|
|
right: width(12),
|
|
),
|
|
alignment: AlignmentDirectional.centerStart,
|
|
height: 110.w,
|
|
width: ScreenUtil().screenWidth,
|
|
decoration: BoxDecoration(
|
|
color: Colors.transparent,
|
|
borderRadius: BorderRadius.all(
|
|
Radius.circular(height(8)),
|
|
),
|
|
border: Border.all(
|
|
color: Color(0xffE6E6E6),
|
|
width: 0.5.w,
|
|
),
|
|
),
|
|
child: SingleChildScrollView(
|
|
child: Text(
|
|
Provider.of<RtcProvider>(context, listen: false)
|
|
.currenRoom
|
|
?.roomProfile
|
|
?.roomProfile
|
|
?.roomDesc ??
|
|
"",
|
|
style: TextStyle(
|
|
fontSize: sp(12),
|
|
color: Colors.white,
|
|
textBaseline: TextBaseline.alphabetic,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
SizedBox(height: 25.w),
|
|
],
|
|
),
|
|
PositionedDirectional(
|
|
top: 10.w,
|
|
end: 10.w,
|
|
child: GestureDetector(
|
|
child: Icon(Icons.close, color: Colors.white, size: 18.w),
|
|
onTap: () {
|
|
SmartDialog.dismiss(tag: "showEditNotiPage");
|
|
},
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|