137 lines
5.0 KiB
Dart
137 lines
5.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:regroup/Common/CommonButton.dart';
|
|
import 'package:regroup/Common/CommonDropDown.dart';
|
|
import 'package:regroup/Common/CommonGlassmorphism.dart';
|
|
import 'package:regroup/Common/controller/CommonTextFormField.dart';
|
|
import 'package:regroup/Utils/Common/CommonAppbar.dart';
|
|
import 'package:regroup/Utils/Common/CommonDropdown.dart';
|
|
import 'package:regroup/Utils/Common/blureffect.dart';
|
|
import 'package:regroup/Utils/Common/sized_box.dart';
|
|
import 'package:regroup/Utils/texts.dart';
|
|
import 'package:regroup/resources/routes/route_name.dart';
|
|
|
|
class NewCommunity extends StatefulWidget {
|
|
const NewCommunity({super.key});
|
|
|
|
@override
|
|
State<NewCommunity> createState() => _NewCommunityState();
|
|
}
|
|
|
|
class _NewCommunityState extends State<NewCommunity> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
// key: _scaffoldKey1,
|
|
backgroundColor: Color(0xFF222935),
|
|
extendBody: true,
|
|
appBar: CommonAppbar(
|
|
titleTxt: "New community",
|
|
),
|
|
body: Stack(children: [
|
|
const CommonBlurLeftRed(),
|
|
const CommonBlurRightRed(),
|
|
const CommonBlurLeft(),
|
|
const CommonBlurRight(),
|
|
Positioned.fill(
|
|
child: SingleChildScrollView(
|
|
child: Padding(
|
|
padding: EdgeInsets.symmetric(horizontal: 16.w),
|
|
child:
|
|
Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
|
sizedBoxHeight(20.h),
|
|
Center(
|
|
child: commonGlassContainer(
|
|
width: 95.w,
|
|
height: 95.h,
|
|
borderradius: 100,
|
|
opacity1: 0.24,
|
|
opacity2: 0.24,
|
|
customWidget: Center(
|
|
child: Image.asset(
|
|
"assets/images/png/cameraicon2.png",
|
|
height: 30.h,
|
|
width: 30.w,
|
|
),
|
|
),
|
|
border: 0.5),
|
|
),
|
|
sizedBoxHeight(20.h),
|
|
Center(child: text16w400_white("Add community profile picture")),
|
|
sizedBoxHeight(30.h),
|
|
text16w400_FCFCFC("Banner image"),
|
|
sizedBoxHeight(15.h),
|
|
commonGlassContainer(
|
|
border: 0.9,
|
|
width: double.infinity,
|
|
height: 130.h,
|
|
borderradius: 10.r,
|
|
customWidget: Padding(
|
|
padding: EdgeInsets.symmetric(vertical: 16.h),
|
|
child: Column(
|
|
children: [
|
|
Image.asset(
|
|
"assets/images/png/bi_download.png",
|
|
height: 36.h,
|
|
width: 36.w,
|
|
),
|
|
sizedBoxHeight(10.h),
|
|
text14w400white('Upload banner image'),
|
|
sizedBoxHeight(8.h),
|
|
text8w400_8A8A8A(
|
|
"Allowed file extensions: jpg, png, gif Max file size: 10 MB"),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
sizedBoxHeight(25.h),
|
|
text16w400_FCFCFC("Community name*"),
|
|
sizedBoxHeight(15.h),
|
|
CustomTextFormField(),
|
|
sizedBoxHeight(25.h),
|
|
text16w400_FCFCFC("Type of community*"),
|
|
sizedBoxHeight(15.h),
|
|
CommonDropdownradioBtn(
|
|
hint: '',
|
|
items: ['Public', 'Private', 'Secret'],
|
|
showOtherOption: false),
|
|
sizedBoxHeight(25.h),
|
|
text16w400_FCFCFC("Location*"),
|
|
sizedBoxHeight(15.h),
|
|
CommonDropdownradioBtn(
|
|
// showOther: true,
|
|
hint: '',
|
|
items: ['Public', 'Private', 'Secret']),
|
|
sizedBoxHeight(25.h),
|
|
text16w400_FCFCFC("Primary activity*"),
|
|
// CustomDropDownWidgetSignup(
|
|
// header: 'Primary activity',
|
|
// title: 'ss',
|
|
// listData: ['Public', 'Private', 'Secret'],
|
|
// onItemSelected: (p0) => {},
|
|
// leadingImage: SizedBox()),
|
|
sizedBoxHeight(20.h),
|
|
CommonDropdownradioBtn(
|
|
hint: '',
|
|
items: [
|
|
'Sports',
|
|
'Hobby',
|
|
],
|
|
showOtherOption: true),
|
|
sizedBoxHeight(25.h),
|
|
sizedBoxHeight(25.h),
|
|
CommonBtn(
|
|
text: "Create community",
|
|
onTap: () {
|
|
Get.toNamed(RouteName.addgroup);
|
|
},
|
|
),
|
|
sizedBoxHeight(25.h),
|
|
sizedBoxHeight(150.h),
|
|
]),
|
|
)))
|
|
]));
|
|
}
|
|
}
|