92 lines
2.8 KiB
Dart
92 lines
2.8 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:regroup/Common/CommonWidget.dart';
|
|
import 'package:regroup/Utils/Common/CommonAppbar.dart';
|
|
|
|
import 'package:regroup/Utils/Common/sized_box.dart';
|
|
import 'package:regroup/Utils/texts.dart';
|
|
import 'package:regroup/resources/routes/route_name.dart';
|
|
|
|
class CommunitySetting extends StatefulWidget {
|
|
const CommunitySetting({super.key});
|
|
|
|
@override
|
|
State<CommunitySetting> createState() => _CommunitySettingState();
|
|
}
|
|
|
|
class _CommunitySettingState extends State<CommunitySetting> {
|
|
int communityid = Get.arguments['communityid'];
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
// key: _scaffoldKey1,
|
|
backgroundColor: Color(0xFF222935),
|
|
extendBody: true,
|
|
resizeToAvoidBottomInset: false,
|
|
appBar: CommonAppbar(
|
|
titleTxt: "Community settings",
|
|
),
|
|
body: Stack(children: [
|
|
Container(
|
|
decoration: const BoxDecoration(
|
|
image: DecorationImage(
|
|
image: AssetImage("assets/images/png/Ellipse 1496.png"),
|
|
fit: BoxFit.fill)),
|
|
),
|
|
Column(children: [
|
|
sizedBoxHeight(30.h),
|
|
GestureDetector(
|
|
onTap: () {
|
|
Get.toNamed(RouteName.editcommunity, arguments: {
|
|
'communityid': communityid,
|
|
});
|
|
},
|
|
child: rowTile(text: 'Edit community info')),
|
|
commonDivider(),
|
|
GestureDetector(
|
|
onTap: () {
|
|
Get.toNamed(RouteName.managemembers);
|
|
},
|
|
child: rowTile(text: 'Manage members')),
|
|
commonDivider(),
|
|
GestureDetector(
|
|
onTap: () {
|
|
Get.toNamed(RouteName.managegroups,
|
|
arguments: {
|
|
'communityid' : communityid,
|
|
}
|
|
);
|
|
},
|
|
child: rowTile(text: 'Manage groups')),
|
|
commonDivider(),
|
|
GestureDetector(
|
|
onTap: () {
|
|
Get.toNamed(RouteName.managetags, arguments: {
|
|
'communityid': communityid,
|
|
});
|
|
},
|
|
child: rowTile(text: 'Manage interest')),
|
|
sizedBoxHeight(20.h),
|
|
])
|
|
]));
|
|
}
|
|
|
|
Widget rowTile({
|
|
required String text,
|
|
}) {
|
|
return Padding(
|
|
padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 20.h),
|
|
child: Row(children: [
|
|
text18w400_FCFCFC(text),
|
|
Spacer(),
|
|
Icon(
|
|
Icons.arrow_forward_ios,
|
|
color: Colors.white,
|
|
size: 20,
|
|
)
|
|
]),
|
|
);
|
|
}
|
|
}
|