diff --git a/assets/images/png/Connected world-amico 1.png b/assets/images/png/Connected world-amico 1.png new file mode 100644 index 0000000..f5b8583 Binary files /dev/null and b/assets/images/png/Connected world-amico 1.png differ diff --git a/assets/images/png/Group 1000004385.png b/assets/images/png/Group 1000004385.png new file mode 100644 index 0000000..a046e4a Binary files /dev/null and b/assets/images/png/Group 1000004385.png differ diff --git a/assets/images/png/Group 1000004420.png b/assets/images/png/Group 1000004420.png new file mode 100644 index 0000000..7e9e4ea Binary files /dev/null and b/assets/images/png/Group 1000004420.png differ diff --git a/assets/images/png/Organizing projects-pana 1.png b/assets/images/png/Organizing projects-pana 1.png new file mode 100644 index 0000000..7aa5da6 Binary files /dev/null and b/assets/images/png/Organizing projects-pana 1.png differ diff --git a/assets/images/png/correct 1.png b/assets/images/png/correct 1.png new file mode 100644 index 0000000..77e4704 Binary files /dev/null and b/assets/images/png/correct 1.png differ diff --git a/assets/images/png/x-circle.png b/assets/images/png/x-circle.png new file mode 100644 index 0000000..166bf0c Binary files /dev/null and b/assets/images/png/x-circle.png differ diff --git a/lib/Feed Module/Main_Screens/CalenderTab/AddEvent/AddEvent.dart b/lib/Feed Module/Main_Screens/CalenderTab/AddEvent/AddEvent.dart index ff085af..102deb7 100644 --- a/lib/Feed Module/Main_Screens/CalenderTab/AddEvent/AddEvent.dart +++ b/lib/Feed Module/Main_Screens/CalenderTab/AddEvent/AddEvent.dart @@ -103,11 +103,11 @@ class _AddEventState extends State { borderType: BorderType.RRect, radius: Radius.circular(14.r), color: const Color(0xFF434A53), - child: commonGlassContainer( - border: 0, + child: commonGlassUI( + // border: 0, width: double.infinity, height: 130.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: bannerPath.isNotEmpty && isbannerAdded ? Stack(children: [ Image.file( @@ -160,10 +160,10 @@ class _AddEventState extends State { ), ), sizedBoxHeight(20.h), - commonGlassContainer( + commonGlassUI( width: double.infinity, height: 60.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: Center( child: Padding( padding: EdgeInsets.symmetric(horizontal: 12.w), @@ -197,7 +197,7 @@ class _AddEventState extends State { ]), ), ), - border: 1), + borderwidth: 1), sizedBoxHeight(20.h), text16400white("Type of event"), sizedBoxHeight(14.h), @@ -313,10 +313,10 @@ class _AddEventState extends State { }); } }, - child: commonGlassContainer( + child: commonGlassUI( width: 174.w, height: 50.h, - borderradius: 30.r, + borderRadius: BorderRadius.circular( 30.r), customWidget: Center( child: Row(children: [ sizedBoxWidth(16.w), @@ -330,7 +330,7 @@ class _AddEventState extends State { formatTimeOfDay(starttime!)), ]), ), - border: 1), + borderwidth: 1), ) ], ), @@ -351,10 +351,10 @@ class _AddEventState extends State { }); } }, - child: commonGlassContainer( + child: commonGlassUI( width: 174.w, height: 50.h, - borderradius: 30.r, + borderRadius: BorderRadius.circular( 30.r), customWidget: Center( child: Row(children: [ sizedBoxWidth(16.w), @@ -368,7 +368,7 @@ class _AddEventState extends State { formatTimeOfDay(endtime!)), ]), ), - border: 1), + borderwidth: 1), ) ], ), @@ -378,9 +378,9 @@ class _AddEventState extends State { Row( children: [ Obx(() { - return commonGlassContainer( - border: 1, - borderradius: 2, + return commonGlassUI( + borderwidth: 1, + borderRadius: BorderRadius.circular( 2), height: 23.h, width: 23.w, opacity1: 0.24, @@ -474,19 +474,19 @@ class _AddEventState extends State { Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - commonGlassContainer( + commonGlassUI( height: 50.h, width: 127.w, - borderradius: 30.r, - border: 1, + borderRadius: BorderRadius.circular( 30.r), + borderwidth: 1, customWidget: Center( child: text16400white("2"), )), - commonGlassContainer( + commonGlassUI( height: 50.h, width: 215.w, - borderradius: 30.r, - border: 1, + borderRadius: BorderRadius.circular( 30.r), + borderwidth: 1, customWidget: Center( child: Row( mainAxisAlignment: MainAxisAlignment.center, @@ -515,10 +515,10 @@ class _AddEventState extends State { required String imagePath, required String title, }) { - return commonGlassContainer( + return commonGlassUI( width: double.infinity, height: 50.h, - borderradius: 30, + borderRadius: BorderRadius.circular(30), customWidget: Padding( padding: const EdgeInsets.symmetric(horizontal: 16), child: Center( @@ -540,6 +540,6 @@ class _AddEventState extends State { ), ), ), - border: 1); + borderwidth: 1); } } diff --git a/lib/Feed Module/Main_Screens/CalenderTab/AddUsers/AddUsers.dart b/lib/Feed Module/Main_Screens/CalenderTab/AddUsers/AddUsers.dart index bd7bc9b..725bc1b 100644 --- a/lib/Feed Module/Main_Screens/CalenderTab/AddUsers/AddUsers.dart +++ b/lib/Feed Module/Main_Screens/CalenderTab/AddUsers/AddUsers.dart @@ -138,10 +138,10 @@ class _AddUsersState extends State { children: [ text18w700_FCFCFC("Group members"), const Spacer(), - commonGlassContainer( + commonGlassUI( width: 35.w, height: 35.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( "assets/images/png/Vector (5)22.png", @@ -149,12 +149,12 @@ class _AddUsersState extends State { width: 12.w, ), ), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(14.w), - commonGlassContainer( + commonGlassUI( width: 35.w, height: 35.h, - borderradius: 100, + borderRadius: BorderRadius.circular(100), customWidget: Center( child: Image.asset( "assets/images/png/bi_filter.png", @@ -162,7 +162,7 @@ class _AddUsersState extends State { width: 18.w, ), ), - border: 0.5) + borderwidth: 0.5) ], ), ), @@ -237,9 +237,9 @@ class _AddUsersState extends State { ], ), const Spacer(), - commonGlassContainer( - border: 1, - borderradius: 2, + commonGlassUI( + borderwidth: 1, + borderRadius: BorderRadius.circular( 2), height: 23.h, width: 23.w, opacity1: 0.24, @@ -280,32 +280,32 @@ class _AddUsersState extends State { sizedBoxHeight(16.h), Row( children: [ - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("M")), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(15.w), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("Tu")), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(15.w), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("W")), - border: 0.5), + borderwidth: 0.5), const Spacer(), Row( children: [ @@ -325,32 +325,32 @@ class _AddUsersState extends State { sizedBoxHeight(20.h), Row( children: [ - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular(100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("Th")), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(15.w), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("F")), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(15.w), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("Sa")), - border: 0.5), + borderwidth: 0.5), const Spacer(), Row( children: [ diff --git a/lib/Feed Module/Main_Screens/CalenderTab/Availabillity.dart b/lib/Feed Module/Main_Screens/CalenderTab/Availabillity.dart index 5bd96ca..8549294 100644 --- a/lib/Feed Module/Main_Screens/CalenderTab/Availabillity.dart +++ b/lib/Feed Module/Main_Screens/CalenderTab/Availabillity.dart @@ -121,14 +121,15 @@ class _AvailabilityState extends State { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - commonGlassContainer( + commonGlassUI( width: double.infinity, height: 670.h, - borderradius: 1, - border: 0, + borderRadius: BorderRadius.circular(1), + // border: 0, customWidget: SfCalendar( view: CalendarView.timelineMonth, - appointmentTextStyle: const TextStyle(color: Colors.white), + appointmentTextStyle: + const TextStyle(color: Colors.white), headerStyle: const CalendarHeaderStyle( textStyle: TextStyle( color: Colors.blue, diff --git a/lib/Feed Module/Main_Screens/CalenderTab/CalenderTab.dart b/lib/Feed Module/Main_Screens/CalenderTab/CalenderTab.dart index 6e67068..a146e0b 100644 --- a/lib/Feed Module/Main_Screens/CalenderTab/CalenderTab.dart +++ b/lib/Feed Module/Main_Screens/CalenderTab/CalenderTab.dart @@ -177,10 +177,7 @@ class _CalenderTabState extends State { // initialIndex: selectedIndex.value, child: Column( children: [ - const CommonTabBar( - - - tabs: [ + const CommonTabBar(tabs: [ Tab( text: 'My sessions', ), @@ -190,7 +187,6 @@ class _CalenderTabState extends State { ]), Expanded( child: TabBarView( - children: [ mySessionsTab(), comSessionTab(), @@ -215,10 +211,11 @@ class _CalenderTabState extends State { sizedBoxHeight(20.h), Padding( padding: EdgeInsets.symmetric(horizontal: 16.w), - child: commonGlassContainer( + child: commonGlassUI( width: double.infinity, height: 136.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular(10.r) , + borderwidth: 1, customWidget: Row( children: [ Padding( @@ -245,15 +242,15 @@ class _CalenderTabState extends State { Image.asset("assets/images/png/Rectangle 45.png") ], ), - border: 1), + ), ), sizedBoxHeight(25.h), Stack(children: [ - commonGlassContainer( + commonGlassUI( width: double.infinity, height: 500.h, - borderradius: 1, - border: 0, + borderRadius: BorderRadius.circular(1), + // borderw: 0, customWidget: SfCalendar( view: CalendarView.month, appointmentTextStyle: const TextStyle(color: Colors.white), @@ -456,10 +453,11 @@ class _CalenderTabState extends State { onTap: () { Get.toNamed(RouteName.eventDetails); }, - child: commonGlassContainer( + child: commonGlassUI( width: double.infinity, height: 300.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), + borderwidth: 1.w, customWidget: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ @@ -529,15 +527,15 @@ class _CalenderTabState extends State { sizedBoxWidth(16.w), CircleAvatar( radius: 12.r, - backgroundImage: - const AssetImage("assets/images/png/Ellipse 52.png"), + backgroundImage: const AssetImage( + "assets/images/png/Ellipse 52.png"), ), sizedBoxWidth(8.w), text14w400_FCFCFC("Ryan dorwat"), ], ) ]), - border: 1), + ), ) ], ), @@ -551,11 +549,11 @@ class _CalenderTabState extends State { sizedBoxHeight(25.h), Stack(children: [ - commonGlassContainer( + commonGlassUI( width: double.infinity, height: 530.h, - borderradius: 1, - border: 0, + borderRadius: BorderRadius.circular(1), + // border: 0, customWidget: SfCalendar( view: CalendarView.month, appointmentTextStyle: const TextStyle(color: Colors.white), @@ -730,10 +728,11 @@ class _CalenderTabState extends State { children: [ text18w700_FCFCFC(title), sizedBoxHeight(25.h), - commonGlassContainer( + commonGlassUI( width: double.infinity, height: 290.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), + borderwidth: 1, customWidget: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ @@ -810,7 +809,7 @@ class _CalenderTabState extends State { ), ], ), - border: 1) + ) ], ), ); diff --git a/lib/Feed Module/Main_Screens/CalenderTab/EventDetails.dart b/lib/Feed Module/Main_Screens/CalenderTab/EventDetails.dart index 070a2e3..48f893c 100644 --- a/lib/Feed Module/Main_Screens/CalenderTab/EventDetails.dart +++ b/lib/Feed Module/Main_Screens/CalenderTab/EventDetails.dart @@ -36,41 +36,44 @@ class _EventDetailsState extends State { onTap: () { Get.toNamed(RouteName.addEvent); }, - child: commonGlassContainer( - width: 40.w, - height: 40.h, - borderradius: 100, - opacity1: 0.24, - opacity2: 0.24, - customWidget: Center( - child: Image.asset("assets/images/png/Vector536.png", - height: 17.h, width: 17.w), - ), - border: 0.5), - ), - sizedBoxWidth(12.w), - commonGlassContainer( + child: commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular(100), opacity1: 0.24, opacity2: 0.24, + borderwidth: 0.5, customWidget: Center( - child: Image.asset("assets/images/png/Vector522.png", + child: Image.asset("assets/images/png/Vector536.png", height: 17.h, width: 17.w), ), - border: 0.5), + ), + ), + sizedBoxWidth(12.w), + commonGlassUI( + width: 40.w, + height: 40.h, + borderRadius: BorderRadius.circular(100), + opacity1: 0.24, + opacity2: 0.24, + borderwidth: 0.5, + customWidget: Center( + child: Image.asset("assets/images/png/Vector522.png", + height: 17.h, width: 17.w), + ), + ), ], ), ), body: Stack(children: [ - Container( + Container( decoration: const BoxDecoration( image: DecorationImage( image: AssetImage("assets/images/png/Ellipse 1496.png"), fit: BoxFit.fill)), - ), SingleChildScrollView( - child: Column( + ), + SingleChildScrollView( + child: Column( children: [ Padding( padding: const EdgeInsets.symmetric(horizontal: 16), @@ -97,20 +100,21 @@ class _EventDetailsState extends State { sizedBoxHeight(22.h), Row( children: [ - commonGlassContainer( - width: 35.w, - height: 35.h, - borderradius: 100, - opacity1: 0.24, - opacity2: 0.24, - customWidget: Center( - child: Image.asset( - "assets/images/png/calender.png", - height: 17.h, - width: 17.w, - ), + commonGlassUI( + width: 35.w, + height: 35.h, + borderRadius: BorderRadius.circular(100), + opacity1: 0.24, + opacity2: 0.24, + borderwidth: 0.5, + customWidget: Center( + child: Image.asset( + "assets/images/png/calender.png", + height: 17.h, + width: 17.w, ), - border: 0.5), + ), + ), sizedBoxWidth(10.w), text16400white("20th April 2024 - 21st April 2024"), ], @@ -118,10 +122,10 @@ class _EventDetailsState extends State { sizedBoxHeight(16.h), Row( children: [ - commonGlassContainer( + commonGlassUI( width: 35.w, height: 35.h, - borderradius: 100, + borderRadius: BorderRadius.circular(100), opacity1: 0.24, opacity2: 0.24, customWidget: Center( @@ -131,7 +135,7 @@ class _EventDetailsState extends State { width: 17.w, ), ), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(10.w), text16400white("3 hours"), ], @@ -139,10 +143,10 @@ class _EventDetailsState extends State { sizedBoxHeight(16.h), Row( children: [ - commonGlassContainer( + commonGlassUI( width: 35.w, height: 35.h, - borderradius: 100, + borderRadius: BorderRadius.circular(100), opacity1: 0.24, opacity2: 0.24, customWidget: Center( @@ -152,7 +156,7 @@ class _EventDetailsState extends State { width: 17.w, ), ), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(10.w), text16400white("Elm street london, United Kingdom"), ], @@ -171,26 +175,26 @@ class _EventDetailsState extends State { Row( mainAxisAlignment: MainAxisAlignment.spaceAround, children: [ - commonGlassContainer( + commonGlassUI( width: 87.w, height: 40.h, - borderradius: 30.r, + borderRadius: BorderRadius.circular(30.r), customWidget: Center(child: text16w400_white("Yes")), - border: 1), - commonGlassContainer( + borderwidth: 1), + commonGlassUI( width: 87.w, height: 40.h, - borderradius: 30.r, + borderRadius: BorderRadius.circular(30.r), customWidget: Center(child: text16w400_white("No")), - border: 1), - commonGlassContainer( + borderwidth: 1), + commonGlassUI( width: 154.w, height: 40.h, - borderradius: 30.r, + borderRadius: BorderRadius.circular(30.r), customWidget: Center( child: text16w400_white("Not yet decided")), - border: 1), + borderwidth: 1), ], ), sizedBoxHeight(20.h), @@ -206,13 +210,13 @@ class _EventDetailsState extends State { sizedBoxHeight(16.h), text18w700white("Are you attending this event ?"), sizedBoxHeight(20.h), - commonGlassContainer( + commonGlassUI( width: 221.w, height: 40.h, - borderradius: 30.r, + borderRadius: BorderRadius.circular(30.r), customWidget: Center(child: text16w400_white("Request to join")), - border: 1), + borderwidth: 1), sizedBoxHeight(20.h), commonDivider(), ], @@ -240,10 +244,10 @@ class _EventDetailsState extends State { sizedBoxHeight(20.h), Visibility( visible: adminView, - child: commonGlassContainer( + child: commonGlassUI( width: double.infinity, height: 251.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular(10.r), customWidget: Padding( padding: const EdgeInsets.symmetric(vertical: 20), child: Column( @@ -265,15 +269,15 @@ class _EventDetailsState extends State { ], ), ), - border: 1), + borderwidth: 1), ), sizedBoxHeight(30.h), Visibility( visible: memberView, - child: commonGlassContainer( + child: commonGlassUI( width: double.infinity, height: 65.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular(10.r), customWidget: Row( crossAxisAlignment: CrossAxisAlignment.center, children: [ @@ -293,7 +297,7 @@ class _EventDetailsState extends State { text18w400white("90 Attending") ], ), - border: 1)), + borderwidth: 1)), text18w700white("Messages"), sizedBoxHeight(20.h), Row( @@ -306,20 +310,20 @@ class _EventDetailsState extends State { sizedBoxWidth(10.w), text16w400_white("Send message to invites"), const Spacer(), - commonGlassContainer( + commonGlassUI( width: 98.w, height: 30.h, - borderradius: 30.r, + borderRadius: BorderRadius.circular( 30.r), customWidget: Center(child: text14400white("Select")), - border: 1) + borderwidth: 1) ], ), sizedBoxHeight(25.h), - commonGlassContainer( + commonGlassUI( width: double.infinity, height: 240.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: Padding( padding: EdgeInsets.symmetric(horizontal: 80.w), child: Column( @@ -353,7 +357,7 @@ class _EventDetailsState extends State { ) ]), ), - border: 1), + borderwidth: 1), sizedBoxHeight(50.h), CommonBtn(text: "Join the event"), sizedBoxHeight(40.h), diff --git a/lib/Feed Module/Main_Screens/CalenderTab/ManageMenmbers/ManageMembersCal.dart b/lib/Feed Module/Main_Screens/CalenderTab/ManageMenmbers/ManageMembersCal.dart index 4572b80..6ebb7f4 100644 --- a/lib/Feed Module/Main_Screens/CalenderTab/ManageMenmbers/ManageMembersCal.dart +++ b/lib/Feed Module/Main_Screens/CalenderTab/ManageMenmbers/ManageMembersCal.dart @@ -189,12 +189,12 @@ class _ManageMembersCalState extends State { child: Center(child: text10400white("Attending")), ), sizedBoxWidth(8.w), - commonGlassContainer( + commonGlassUI( width: 25.w, height: 25.h, opacity1: 0.24, opacity2: 0.24, - borderradius: 100.r, + borderRadius: BorderRadius.circular(100.r), customWidget: Center( child: Image.asset( "assets/images/png/alarm 1 (traced).png", @@ -202,14 +202,14 @@ class _ManageMembersCalState extends State { width: 13.w, ), ), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(8.w), - commonGlassContainer( + commonGlassUI( width: 25.w, height: 25.h, opacity1: 0.24, opacity2: 0.24, - borderradius: 100.r, + borderRadius: BorderRadius.circular( 100.r), customWidget: Center( child: Image.asset( "assets/images/png/fluent_delete-28-regular.png", @@ -217,7 +217,7 @@ class _ManageMembersCalState extends State { width: 13.w, ), ), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(12.w) ], ), @@ -244,32 +244,32 @@ class _ManageMembersCalState extends State { sizedBoxHeight(16.h), Row( children: [ - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular(100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("M")), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(15.w), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("Tu")), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(15.w), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("W")), - border: 0.5), + borderwidth: 0.5), const Spacer(), Row( children: [ @@ -289,32 +289,32 @@ class _ManageMembersCalState extends State { sizedBoxHeight(20.h), Row( children: [ - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("Th")), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(15.w), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular(100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("F")), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(15.w), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("Sa")), - border: 0.5), + borderwidth: 0.5), const Spacer(), Row( children: [ @@ -374,4 +374,6 @@ class _ManageMembersCalState extends State { ), )); } + + } diff --git a/lib/Feed Module/Main_Screens/CalenderTab/Resource Pool/ResourcePool.dart b/lib/Feed Module/Main_Screens/CalenderTab/Resource Pool/ResourcePool.dart index 68a0fa5..9838fb4 100644 --- a/lib/Feed Module/Main_Screens/CalenderTab/Resource Pool/ResourcePool.dart +++ b/lib/Feed Module/Main_Screens/CalenderTab/Resource Pool/ResourcePool.dart @@ -89,10 +89,10 @@ class _ResourcePoolState extends State { } Widget resourceCard() { - return commonGlassContainer( + return commonGlassUI( width: double.infinity, height: 216.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: Padding( padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 16), child: @@ -177,7 +177,7 @@ class _ResourcePoolState extends State { ), ]), ), - border: 1); + borderwidth: 1); } void inviteBottomSheet() { @@ -258,9 +258,9 @@ class _ResourcePoolState extends State { sizedBoxWidth(10.w), text16w400_FCFCFC(title), const Spacer(), - commonGlassContainer( - border: 1, - borderradius: 2, + commonGlassUI( + borderwidth: 1, + borderRadius: BorderRadius.circular( 2), height: 23.h, width: 23.w, opacity1: 0.24, diff --git a/lib/Feed Module/Main_Screens/CalenderTab/SetAvailabillity.dart b/lib/Feed Module/Main_Screens/CalenderTab/SetAvailabillity.dart index 1dd6be0..f05a41a 100644 --- a/lib/Feed Module/Main_Screens/CalenderTab/SetAvailabillity.dart +++ b/lib/Feed Module/Main_Screens/CalenderTab/SetAvailabillity.dart @@ -138,10 +138,10 @@ class _SetAvailabillityState extends State { children: [ text16400white("Start time"), sizedBoxHeight(14.h), - commonGlassContainer( + commonGlassUI( width: 174.w, height: 50.h, - borderradius: 30.r, + borderRadius: BorderRadius.circular(30.r), customWidget: Center( child: Row(children: [ sizedBoxWidth(16.w), @@ -154,7 +154,7 @@ class _SetAvailabillityState extends State { text16w400_white("3:00 pm") ]), ), - border: 1) + borderwidth: 1) ], ), const Spacer(), @@ -163,10 +163,10 @@ class _SetAvailabillityState extends State { children: [ text16400white("End time"), sizedBoxHeight(14.h), - commonGlassContainer( + commonGlassUI( width: 174.w, height: 50.h, - borderradius: 30.r, + borderRadius: BorderRadius.circular( 30.r), customWidget: Center( child: Row(children: [ sizedBoxWidth(16.w), @@ -179,7 +179,7 @@ class _SetAvailabillityState extends State { text16w400_white("5:00 pm") ]), ), - border: 1) + borderwidth: 1) ], ), ], diff --git a/lib/Feed Module/Main_Screens/Chats/View/groupchat.dart b/lib/Feed Module/Main_Screens/Chats/View/groupchat.dart index 8cad5e0..0e3ecff 100644 --- a/lib/Feed Module/Main_Screens/Chats/View/groupchat.dart +++ b/lib/Feed Module/Main_Screens/Chats/View/groupchat.dart @@ -264,13 +264,13 @@ class _GroupChatPageState extends State { child: Row( children: [ sizedBoxWidth(10.w), - commonGlassContainer( - border: 0.9, + commonGlassUI( + borderwidth: 0.9, width: 40.w, height: 40.h, opacity1: 0.24, opacity2: 0.24, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( 'assets/images/png/appbararrowbutton.png') diff --git a/lib/Feed Module/Main_Screens/Chats/View/userchat.dart b/lib/Feed Module/Main_Screens/Chats/View/userchat.dart index a6e8f10..918ccd2 100644 --- a/lib/Feed Module/Main_Screens/Chats/View/userchat.dart +++ b/lib/Feed Module/Main_Screens/Chats/View/userchat.dart @@ -266,13 +266,13 @@ class _UserChatPageState extends State { child: Row( children: [ sizedBoxWidth(10.w), - commonGlassContainer( - border: 0.9, + commonGlassUI( + borderwidth: 0.9, width: 40.w, height: 40.h, opacity1: 0.24, opacity2: 0.24, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( 'assets/images/png/appbararrowbutton.png') diff --git a/lib/Feed Module/Main_Screens/Community/Community.dart b/lib/Feed Module/Main_Screens/Community/Community.dart index 784968b..2cdb5a3 100644 --- a/lib/Feed Module/Main_Screens/Community/Community.dart +++ b/lib/Feed Module/Main_Screens/Community/Community.dart @@ -86,7 +86,10 @@ class _CommunityScreenState extends State { sizedBoxWidth(16.w), ], ), - body: Stack(clipBehavior: Clip.none, children: [ + body: + + + Stack(clipBehavior: Clip.none, children: [ Container( decoration: const BoxDecoration( image: DecorationImage( @@ -636,11 +639,11 @@ Widget normalcardtile({ } } - return commonGlassContainer( + return commonGlassUI( width: double.infinity, height: 570.h, - border: 0, - borderradius: 1, + borderwidth: 0, + borderRadius: BorderRadius.circular( 1), customWidget: Column( children: [ sizedBoxHeight(25.h), @@ -827,13 +830,13 @@ Widget normalcardtile({ ]), ), const Spacer(), - commonGlassContainer( - border: 0.43, + commonGlassUI( + borderwidth: 0.43, width: 30.w, height: 30.h, opacity1: 0.05, opacity2: 0.06, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( 'assets/images/png/Frame 1000004088.png', @@ -845,11 +848,11 @@ Widget normalcardtile({ sizedBoxWidth(12.w), text14w400_FCFCFC('20'), sizedBoxWidth(20.w), - commonGlassContainer( - border: 0.43, + commonGlassUI( + borderwidth: 0.43, width: 30.w, height: 30.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.05, opacity2: 0.06, customWidget: Center( @@ -1349,11 +1352,11 @@ Widget _buildReactionsIcon(String assetPath) { } Widget containertile({required String text}) { - return commonGlassContainer( - border: 1, + return commonGlassUI( + borderwidth: 1, width: 130.w, height: 30.h, - borderradius: 30.r, + borderRadius: BorderRadius.circular( 30.r), borderColor: const Color(0xFFD90B2E), customWidget: Padding( padding: EdgeInsets.symmetric(horizontal: 10.w), diff --git a/lib/Feed Module/Main_Screens/Community/CycleScreen.dart b/lib/Feed Module/Main_Screens/Community/CycleScreen.dart index 799e14e..3fb34cd 100644 --- a/lib/Feed Module/Main_Screens/Community/CycleScreen.dart +++ b/lib/Feed Module/Main_Screens/Community/CycleScreen.dart @@ -137,11 +137,11 @@ Widget normalcardtile({ } } - return commonGlassContainer( + return commonGlassUI( width: double.infinity, height: 570.h, - border: 0, - borderradius: 1, + borderwidth: 0, + borderRadius: BorderRadius.circular( 1), customWidget: Column( children: [ sizedBoxHeight(25.h), @@ -327,13 +327,13 @@ Widget normalcardtile({ ]), ), const Spacer(), - commonGlassContainer( - border: 0.43, + commonGlassUI( + borderwidth: 0.43, width: 30.w, height: 30.h, opacity1: 0.05, opacity2: 0.06, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( 'assets/images/png/Frame 1000004088.png', @@ -345,11 +345,11 @@ Widget normalcardtile({ sizedBoxWidth(12.w), text14w400_FCFCFC('20'), sizedBoxWidth(20.w), - commonGlassContainer( - border: 0.43, + commonGlassUI( + borderwidth: 0.43, width: 30.w, height: 30.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.05, opacity2: 0.06, customWidget: Center( diff --git a/lib/Feed Module/Main_Screens/Community/PostDetailScreen/View/PostDetailScreen.dart b/lib/Feed Module/Main_Screens/Community/PostDetailScreen/View/PostDetailScreen.dart index d028ed2..f601660 100644 --- a/lib/Feed Module/Main_Screens/Community/PostDetailScreen/View/PostDetailScreen.dart +++ b/lib/Feed Module/Main_Screens/Community/PostDetailScreen/View/PostDetailScreen.dart @@ -125,11 +125,11 @@ class _PostDetailsScreenState extends State { } } - return commonGlassContainer( + return commonGlassUI( width: double.infinity, height: 570.h, - border: 0, - borderradius: 0, + borderwidth: 0, + borderRadius: BorderRadius.circular(0), customWidget: Column( children: [ sizedBoxHeight(25.h), @@ -151,14 +151,14 @@ class _PostDetailsScreenState extends State { children: [ text16w400_FCFCFC(title), const Spacer(), - commonGlassContainer( + commonGlassUI( width: 72.w, height: 26.h, - borderradius: 5.r, + borderRadius: BorderRadius.circular(5.r), borderColor: const Color(0xFFD90B2E), customWidget: Center(child: text14400white("Follow")), - border: 1), + borderwidth: 1), sizedBoxWidth(6.w), PopupMenuButton( surfaceTintColor: const Color(0xFF222935), @@ -329,11 +329,11 @@ class _PostDetailsScreenState extends State { 'assets/images/png/party-popper 2.png' ]), const Spacer(), - commonGlassContainer( - border: 0.9, + commonGlassUI( + borderwidth: 0.9, width: 30.w, height: 30.h, - borderradius: 100, + borderRadius: BorderRadius.circular(100), customWidget: Center( child: Image.asset( 'assets/images/png/Frame 1000004088.png', @@ -345,11 +345,11 @@ class _PostDetailsScreenState extends State { sizedBoxWidth(12.w), text14w400_FCFCFC('20'), sizedBoxWidth(20.w), - commonGlassContainer( - border: 0.9, + commonGlassUI( + borderwidth: 0.9, width: 30.w, height: 30.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( 'assets/images/png/Vector (1).png', @@ -452,11 +452,11 @@ class _PostDetailsScreenState extends State { } Widget containertile({required String text}) { - return commonGlassContainer( - border: 0.9, + return commonGlassUI( + borderwidth: 0.9, width: 100.w, height: 30.h, - borderradius: 30.r, + borderRadius: BorderRadius.circular( 30.r), borderColor: const Color(0xFFD90B2E), customWidget: Padding( padding: EdgeInsets.symmetric(horizontal: 10.w), diff --git a/lib/Feed Module/Main_Screens/Community/PostDetailScreen/View/ReactionView.dart b/lib/Feed Module/Main_Screens/Community/PostDetailScreen/View/ReactionView.dart index 8519d05..a0e03ac 100644 --- a/lib/Feed Module/Main_Screens/Community/PostDetailScreen/View/ReactionView.dart +++ b/lib/Feed Module/Main_Screens/Community/PostDetailScreen/View/ReactionView.dart @@ -93,13 +93,13 @@ class _ReactionViewState extends State { ), Tab( child: Row(children: [ - commonGlassContainer( + commonGlassUI( borderColor: const Color(0xFF1E3A46), opacity1: 0.05, opacity2: 0.06, width: 30.w, height: 30.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( "assets/images/png/f7_hand-thumbsup.png", @@ -107,20 +107,20 @@ class _ReactionViewState extends State { width: 17.w, ), ), - border: 1.71), + borderwidth: 1.71), const Spacer(), text14400white("110K"), ]), ), Tab( child: Row(children: [ - commonGlassContainer( + commonGlassUI( borderColor: const Color(0xFF1E3A46), opacity1: 0.05, opacity2: 0.06, width: 30.w, height: 30.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( "assets/images/png/heart 2.png", @@ -128,20 +128,20 @@ class _ReactionViewState extends State { width: 17.w, ), ), - border: 1.71), + borderwidth: 1.71), const Spacer(), text14400white("9.7K"), ]), ), Tab( child: Row(children: [ - commonGlassContainer( + commonGlassUI( borderColor: const Color(0xFF1E3A46), opacity1: 0.05, opacity2: 0.06, width: 30.w, height: 30.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( "assets/images/png/party-popper 2.png", @@ -149,7 +149,7 @@ class _ReactionViewState extends State { width: 17.w, ), ), - border: 1.71), + borderwidth: 1.71), const Spacer(), text14400white("7.4K"), ]), diff --git a/lib/Feed Module/Main_Screens/ExploreDesign/DetailExplore.dart b/lib/Feed Module/Main_Screens/ExploreDesign/DetailExplore.dart index 110c852..65c12a9 100644 --- a/lib/Feed Module/Main_Screens/ExploreDesign/DetailExplore.dart +++ b/lib/Feed Module/Main_Screens/ExploreDesign/DetailExplore.dart @@ -41,16 +41,16 @@ class _DetailExploreState extends State { onTap: () { Get.back(); }, - child: commonGlassContainer( + child: commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: const Center( child: Icon( Icons.arrow_back, color: Colors.white, )), - border: 1, + borderwidth: 1, borderColor: const Color(0xFF55434F)), ), sizedBoxWidth(12.w), diff --git a/lib/Feed Module/Main_Screens/ExploreDesign/ExploreScreen.dart b/lib/Feed Module/Main_Screens/ExploreDesign/ExploreScreen.dart index 20b4b60..46ce3d8 100644 --- a/lib/Feed Module/Main_Screens/ExploreDesign/ExploreScreen.dart +++ b/lib/Feed Module/Main_Screens/ExploreDesign/ExploreScreen.dart @@ -191,10 +191,10 @@ class _ExploreScreenState extends State { sizedBoxHeight(25.h), Row( children: [ - commonGlassContainer( + commonGlassUI( width: 30.w, height: 30.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( "assets/images/png/community 1 (traced).png", @@ -202,21 +202,21 @@ class _ExploreScreenState extends State { width: 18.w, ), ), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(10.w), text16400white("10 subgroups "), const Spacer(), - commonGlassContainer( + commonGlassUI( width: 30.w, height: 30.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( "assets/images/png/ph_users-light.png", height: 18.h, width: 18.w, )), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(10.w), text16400white("7 members"), ], @@ -224,14 +224,14 @@ class _ExploreScreenState extends State { sizedBoxHeight(30.h), Row( children: [ - commonGlassContainer( + commonGlassUI( width: 170.w, height: 35.h, opacity1: 0.05, opacity2: 0.07, - borderradius: 30.r, + borderRadius: BorderRadius.circular( 30.r), customWidget: Center(child: text14w400_FCFCFC("Message")), - border: 1), + borderwidth: 1), const Spacer(), Container( width: 170.w, diff --git a/lib/Feed Module/Main_Screens/ExploreDesign/SearchGroup.dart b/lib/Feed Module/Main_Screens/ExploreDesign/SearchGroup.dart index 255ab64..1649038 100644 --- a/lib/Feed Module/Main_Screens/ExploreDesign/SearchGroup.dart +++ b/lib/Feed Module/Main_Screens/ExploreDesign/SearchGroup.dart @@ -125,10 +125,10 @@ class _SearchGroupState extends State { Widget rowTile({required String imagePath, required String title}) { return Row( children: [ - commonGlassContainer( + commonGlassUI( width: 30.w, height: 30.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( imagePath, @@ -136,7 +136,7 @@ class _SearchGroupState extends State { width: 16.w, ), ), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(12.w), text16400white(title), const Spacer(), diff --git a/lib/Feed Module/Main_Screens/GroupTab/View/ConnectCommunity.dart b/lib/Feed Module/Main_Screens/GroupTab/View/ConnectCommunity.dart index 14d0c1f..4554fd1 100644 --- a/lib/Feed Module/Main_Screens/GroupTab/View/ConnectCommunity.dart +++ b/lib/Feed Module/Main_Screens/GroupTab/View/ConnectCommunity.dart @@ -78,11 +78,11 @@ class _ConnectCommunityState extends State { padding: EdgeInsets.only(bottom: 25.h), child: GestureDetector( onTap: ontap, - child: commonGlassContainer( - border: 0.9, + child: commonGlassUI( + borderwidth: 0.9, width: double.infinity, height: 162.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: Padding( padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 16.h), child: Column( diff --git a/lib/Feed Module/Main_Screens/GroupTab/View/GroupDetail.dart b/lib/Feed Module/Main_Screens/GroupTab/View/GroupDetail.dart index ca7f802..08d0779 100644 --- a/lib/Feed Module/Main_Screens/GroupTab/View/GroupDetail.dart +++ b/lib/Feed Module/Main_Screens/GroupTab/View/GroupDetail.dart @@ -111,12 +111,12 @@ class _GroupDetailState extends State { ), ), ], - child: commonGlassContainer( + child: commonGlassUI( opacity1: 0.24, opacity2: 0.24, width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( "assets/images/png/Vector536.png", @@ -124,7 +124,7 @@ class _GroupDetailState extends State { width: 17.w, ), ), - border: 0.5), + borderwidth: 0.5), ), sizedBoxWidth(16.w), PopupMenuButton( @@ -370,10 +370,10 @@ class _GroupDetailState extends State { ], ), sizedBoxHeight(25.h), - commonGlassContainer( + commonGlassUI( width: double.infinity, height: 135.h, - borderradius: 10, + borderRadius: BorderRadius.circular( 10), customWidget: Padding( padding: EdgeInsets.symmetric( vertical: 12.h, horizontal: 16.w), @@ -420,12 +420,12 @@ class _GroupDetailState extends State { ], ), ), - border: 1), + borderwidth: 1), sizedBoxHeight(20.h), - commonGlassContainer( + commonGlassUI( width: double.infinity, height: 51.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: Padding( padding: EdgeInsets.only(right: 16.w), child: Center( @@ -447,7 +447,7 @@ class _GroupDetailState extends State { ]), ), ), - border: 1), + borderwidth: 1), sizedBoxHeight(20.h), Row( children: [ @@ -484,10 +484,10 @@ class _GroupDetailState extends State { ), ), sizedBoxHeight(25.h), - commonGlassContainer( + commonGlassUI( width: double.infinity, height: 51.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: Padding( padding: EdgeInsets.symmetric(horizontal: 12.w), child: Row(children: [ @@ -523,7 +523,7 @@ class _GroupDetailState extends State { ) ]), ), - border: 1), + borderwidth: 1), sizedBoxHeight(25.h), ], ), diff --git a/lib/Feed Module/Main_Screens/GroupTab/View/GroupEvent.dart b/lib/Feed Module/Main_Screens/GroupTab/View/GroupEvent.dart index 5b7553e..21ce10b 100644 --- a/lib/Feed Module/Main_Screens/GroupTab/View/GroupEvent.dart +++ b/lib/Feed Module/Main_Screens/GroupTab/View/GroupEvent.dart @@ -109,11 +109,11 @@ class _GroupEventState extends State { borderType: BorderType.RRect, radius: Radius.circular(14.r), color: const Color(0xFF434A53), - child: commonGlassContainer( - border: 0, + child: commonGlassUI( + borderwidth: 0, width: double.infinity, height: 130.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: bannerPath.isNotEmpty && isbannerAdded ? Stack(children: [ Image.file( @@ -166,10 +166,10 @@ class _GroupEventState extends State { ), ), sizedBoxHeight(20.h), - commonGlassContainer( + commonGlassUI( width: double.infinity, height: 60.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: Center( child: Padding( padding: EdgeInsets.symmetric(horizontal: 12.w), @@ -203,7 +203,7 @@ class _GroupEventState extends State { ]), ), ), - border: 1), + borderwidth: 1), sizedBoxHeight(20.h), text16400white("Type of event"), sizedBoxHeight(14.h), @@ -319,10 +319,10 @@ class _GroupEventState extends State { }); } }, - child: commonGlassContainer( + child: commonGlassUI( width: 174.w, height: 50.h, - borderradius: 30.r, + borderRadius: BorderRadius.circular( 30.r), customWidget: Center( child: Row(children: [ sizedBoxWidth(16.w), @@ -336,7 +336,7 @@ class _GroupEventState extends State { formatTimeOfDay(starttime!)), ]), ), - border: 1), + borderwidth: 1), ) ], ), @@ -357,10 +357,10 @@ class _GroupEventState extends State { }); } }, - child: commonGlassContainer( + child: commonGlassUI( width: 174.w, height: 50.h, - borderradius: 30.r, + borderRadius: BorderRadius.circular( 30.r), customWidget: Center( child: Row(children: [ sizedBoxWidth(16.w), @@ -374,7 +374,7 @@ class _GroupEventState extends State { formatTimeOfDay(endtime!)), ]), ), - border: 1), + borderwidth: 1), ) ], ), @@ -384,9 +384,9 @@ class _GroupEventState extends State { Row( children: [ Obx(() { - return commonGlassContainer( - border: 1, - borderradius: 2, + return commonGlassUI( + borderwidth: 1, + borderRadius: BorderRadius.circular( 2), height: 23.h, width: 23.w, opacity1: 0.24, @@ -487,19 +487,19 @@ class _GroupEventState extends State { Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - commonGlassContainer( + commonGlassUI( height: 50.h, width: 127.w, - borderradius: 30.r, - border: 1, + borderRadius: BorderRadius.circular( 30.r), + borderwidth: 1, customWidget: Center( child: text16400white("2"), )), - commonGlassContainer( + commonGlassUI( height: 50.h, width: 215.w, - borderradius: 30.r, - border: 1, + borderRadius: BorderRadius.circular( 30.r), + borderwidth: 1, customWidget: Center( child: Row( mainAxisAlignment: MainAxisAlignment.center, @@ -528,10 +528,10 @@ class _GroupEventState extends State { required String imagePath, required String title, }) { - return commonGlassContainer( + return commonGlassUI( width: double.infinity, height: 50.h, - borderradius: 30, + borderRadius: BorderRadius.circular( 30), customWidget: Padding( padding: const EdgeInsets.symmetric(horizontal: 16), child: Center( @@ -553,6 +553,6 @@ class _GroupEventState extends State { ), ), ), - border: 1); + borderwidth: 1); } } diff --git a/lib/Feed Module/Main_Screens/GroupTab/View/GroupInfo.dart b/lib/Feed Module/Main_Screens/GroupTab/View/GroupInfo.dart index 2da225c..15b57ee 100644 --- a/lib/Feed Module/Main_Screens/GroupTab/View/GroupInfo.dart +++ b/lib/Feed Module/Main_Screens/GroupTab/View/GroupInfo.dart @@ -94,12 +94,12 @@ class _GroupInfoState extends State { sizedBoxHeight(30.h), Row( children: [ - commonGlassContainer( + commonGlassUI( width: 35.w, height: 35.h, opacity1: 0.24, opacity2: 0.24, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( "assets/images/png/Group 58645.png", @@ -107,7 +107,7 @@ class _GroupInfoState extends State { width: 13.w, ), ), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(12.w), text16400white("Elm street london, United Kingdom") ], @@ -115,12 +115,12 @@ class _GroupInfoState extends State { sizedBoxHeight(30.h), Row( children: [ - commonGlassContainer( + commonGlassUI( width: 35.w, height: 35.h, opacity1: 0.24, opacity2: 0.24, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( "assets/images/png/Vector2a.png", @@ -128,7 +128,7 @@ class _GroupInfoState extends State { width: 20.w, ), ), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(12.w), text16400white("www.exampledummywebsite.com") ], diff --git a/lib/Feed Module/Main_Screens/GroupTab/View/GroupManage.dart b/lib/Feed Module/Main_Screens/GroupTab/View/GroupManage.dart index cc5680f..47f895e 100644 --- a/lib/Feed Module/Main_Screens/GroupTab/View/GroupManage.dart +++ b/lib/Feed Module/Main_Screens/GroupTab/View/GroupManage.dart @@ -142,10 +142,10 @@ class _GroupManageState extends State { hintText: "Start date - End date", )), const Spacer(), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center( @@ -155,7 +155,7 @@ class _GroupManageState extends State { width: 23.w, ), ), - border: 0.5) + borderwidth: 0.5) ], ), ], @@ -235,32 +235,32 @@ class _GroupManageState extends State { sizedBoxHeight(16.h), Row( children: [ - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("M")), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(15.w), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("Tu")), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(15.w), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("W")), - border: 0.5), + borderwidth: 0.5), const Spacer(), Row( children: [ @@ -280,32 +280,32 @@ class _GroupManageState extends State { sizedBoxHeight(20.h), Row( children: [ - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("Th")), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(15.w), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("F")), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(15.w), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("Sa")), - border: 0.5), + borderwidth: 0.5), const Spacer(), Row( children: [ @@ -414,10 +414,10 @@ class _GroupManageState extends State { hintText: "Start date - End date", )), const Spacer(), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center( @@ -427,7 +427,7 @@ class _GroupManageState extends State { width: 23.w, ), ), - border: 0.5) + borderwidth: 0.5) ], ), ], @@ -538,10 +538,10 @@ class _GroupManageState extends State { hintText: "Start date - End date", )), const Spacer(), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center( @@ -551,7 +551,7 @@ class _GroupManageState extends State { width: 23.w, ), ), - border: 0.5) + borderwidth: 0.5) ], ), ], diff --git a/lib/Feed Module/Main_Screens/GroupTab/View/GroupTab.dart b/lib/Feed Module/Main_Screens/GroupTab/View/GroupTab.dart index 48c419d..0276e15 100644 --- a/lib/Feed Module/Main_Screens/GroupTab/View/GroupTab.dart +++ b/lib/Feed Module/Main_Screens/GroupTab/View/GroupTab.dart @@ -232,8 +232,8 @@ class _GroupTabState extends State { EdgeInsets.symmetric(horizontal: 8.w), child: Row( children: [ - text14w400_FCFCFC("Mute group"), - const Spacer(), + text14w400_FCFCFC("Mute community"), + Spacer(), Image.asset( "assets/images/png/Black (1).png", height: 18.h, @@ -243,7 +243,7 @@ class _GroupTabState extends State { ), ), ), - const PopupMenuDivider(), + PopupMenuDivider(), PopupMenuItem( onTap: () {}, child: Padding( @@ -251,29 +251,10 @@ class _GroupTabState extends State { EdgeInsets.symmetric(horizontal: 8.w), child: Row( children: [ - text14w400_FCFCFC("Pin group"), - const Spacer(), + text14w400_FCFCFC("Hide post"), + Spacer(), Image.asset( - "assets/images/png/f7_pin-fill (2).png", - height: 27.h, - width: 27.w, - ) - ], - ), - ), - ), - const PopupMenuDivider(), - PopupMenuItem( - onTap: () {}, - child: Padding( - padding: - EdgeInsets.symmetric(horizontal: 8.w), - child: Row( - children: [ - text14w400_FCFCFC("Make primary"), - const Spacer(), - Image.asset( - "assets/images/png/leave group.png", + "assets/images/png/mingcute_eye-close-line.png", height: 20.h, width: 20.w, ) @@ -281,7 +262,7 @@ class _GroupTabState extends State { ), ), ), - const PopupMenuDivider(), + PopupMenuDivider(), PopupMenuItem( onTap: () {}, child: Padding( @@ -289,11 +270,29 @@ class _GroupTabState extends State { EdgeInsets.symmetric(horizontal: 8.w), child: Row( children: [ - // text14w400_FCFCFC("Leave group"), - text14w400_D90B2E("Leave group"), - const Spacer(), + text14w400_FCFCFC("Pin"), + Spacer(), Image.asset( - "assets/images/png/LightGray22.png", + "assets/images/png/f7_pin-fill (2).png", + height: 25.h, + width: 25.w, + ) + ], + ), + ), + ), + PopupMenuDivider(), + PopupMenuItem( + onTap: () {}, + child: Padding( + padding: + EdgeInsets.symmetric(horizontal: 8.w), + child: Row( + children: [ + text14w400_FCFCFC("Leave community"), + Spacer(), + Image.asset( + "assets/images/png/logout 1 (traced).png", height: 18.h, width: 18.w, ) diff --git a/lib/Feed Module/Main_Screens/GroupTab/View/NewPost.dart b/lib/Feed Module/Main_Screens/GroupTab/View/NewPost.dart index 7868e11..582fbe5 100644 --- a/lib/Feed Module/Main_Screens/GroupTab/View/NewPost.dart +++ b/lib/Feed Module/Main_Screens/GroupTab/View/NewPost.dart @@ -84,11 +84,11 @@ class _NewPostState extends State { borderType: BorderType.RRect, radius: Radius.circular(14.r), color: const Color(0xFF434A53), - child: commonGlassContainer( - border: 0, + child: commonGlassUI( + borderwidth: 0, width: double.infinity, height: 130.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: bannerPath.isNotEmpty && isbannerAdded ? Stack(children: [ Image.file( diff --git a/lib/Feed Module/Main_Screens/GroupTab/View/RequestedGroups.dart b/lib/Feed Module/Main_Screens/GroupTab/View/RequestedGroups.dart index 07ba70a..7fc0186 100644 --- a/lib/Feed Module/Main_Screens/GroupTab/View/RequestedGroups.dart +++ b/lib/Feed Module/Main_Screens/GroupTab/View/RequestedGroups.dart @@ -144,8 +144,8 @@ class _RequestedGroupsState extends State { EdgeInsets.symmetric(horizontal: 8.w), child: Row( children: [ - text14w400_FCFCFC("Mute group"), - const Spacer(), + text14w400_FCFCFC("Mute community"), + Spacer(), Image.asset( "assets/images/png/Black (1).png", height: 18.h, @@ -155,7 +155,7 @@ class _RequestedGroupsState extends State { ), ), ), - const PopupMenuDivider(), + PopupMenuDivider(), PopupMenuItem( onTap: () {}, child: Padding( @@ -163,29 +163,10 @@ class _RequestedGroupsState extends State { EdgeInsets.symmetric(horizontal: 8.w), child: Row( children: [ - text14w400_FCFCFC("Pin group"), - const Spacer(), + text14w400_FCFCFC("Hide post"), + Spacer(), Image.asset( - "assets/images/png/f7_pin-fill (2).png", - height: 27.h, - width: 27.w, - ) - ], - ), - ), - ), - const PopupMenuDivider(), - PopupMenuItem( - onTap: () {}, - child: Padding( - padding: - EdgeInsets.symmetric(horizontal: 8.w), - child: Row( - children: [ - text14w400_FCFCFC("Make primary"), - const Spacer(), - Image.asset( - "assets/images/png/leave group.png", + "assets/images/png/mingcute_eye-close-line.png", height: 20.h, width: 20.w, ) @@ -193,7 +174,7 @@ class _RequestedGroupsState extends State { ), ), ), - const PopupMenuDivider(), + PopupMenuDivider(), PopupMenuItem( onTap: () {}, child: Padding( @@ -201,11 +182,29 @@ class _RequestedGroupsState extends State { EdgeInsets.symmetric(horizontal: 8.w), child: Row( children: [ - // text14w400_FCFCFC("Leave group"), - text14w400_D90B2E("Leave group"), - const Spacer(), + text14w400_FCFCFC("Pin"), + Spacer(), Image.asset( - "assets/images/png/LightGray22.png", + "assets/images/png/f7_pin-fill (2).png", + height: 25.h, + width: 25.w, + ) + ], + ), + ), + ), + PopupMenuDivider(), + PopupMenuItem( + onTap: () {}, + child: Padding( + padding: + EdgeInsets.symmetric(horizontal: 8.w), + child: Row( + children: [ + text14w400_FCFCFC("Leave community"), + Spacer(), + Image.asset( + "assets/images/png/logout 1 (traced).png", height: 18.h, width: 18.w, ) diff --git a/lib/Feed Module/Main_Screens/GroupTab/View/Sessions.dart b/lib/Feed Module/Main_Screens/GroupTab/View/Sessions.dart index 93640e3..9f06afd 100644 --- a/lib/Feed Module/Main_Screens/GroupTab/View/Sessions.dart +++ b/lib/Feed Module/Main_Screens/GroupTab/View/Sessions.dart @@ -245,9 +245,9 @@ class _SessionsState extends State { Row( children: [ Obx(() { - return commonGlassContainer( - border: 1, - borderradius: 2, + return commonGlassUI( + borderwidth: 1, + borderRadius: BorderRadius.circular( 2), height: 23.h, width: 23.w, opacity1: 0.24, @@ -334,19 +334,19 @@ class _SessionsState extends State { Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - commonGlassContainer( + commonGlassUI( height: 50.h, width: 127.w, - borderradius: 30.r, - border: 1, + borderRadius: BorderRadius.circular( 30.r), + borderwidth: 1, customWidget: Center( child: text16400white("2"), )), - commonGlassContainer( + commonGlassUI( height: 50.h, width: 215.w, - borderradius: 30.r, - border: 1, + borderRadius: BorderRadius.circular( 30.r), + borderwidth: 1, customWidget: Center( child: Row( mainAxisAlignment: @@ -385,11 +385,11 @@ class _SessionsState extends State { borderType: BorderType.RRect, radius: Radius.circular(14.r), color: const Color(0xFF434A53), - child: commonGlassContainer( - border: 0, + child: commonGlassUI( + borderwidth: 0, width: double.infinity, height: 130.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: bannerPath.isNotEmpty && isbannerAdded ? Stack(children: [ diff --git a/lib/Feed Module/Main_Screens/GroupTab/View/SubGroup/EditSubgroupInfo.dart b/lib/Feed Module/Main_Screens/GroupTab/View/SubGroup/EditSubgroupInfo.dart index 9c87a1e..5adbe64 100644 --- a/lib/Feed Module/Main_Screens/GroupTab/View/SubGroup/EditSubgroupInfo.dart +++ b/lib/Feed Module/Main_Screens/GroupTab/View/SubGroup/EditSubgroupInfo.dart @@ -123,11 +123,11 @@ class _EditSubgroupInfoState extends State { }, ); }, - child: commonGlassContainer( - border: 0.9, + child: commonGlassUI( + borderwidth: 0.9, width: double.infinity, height: 150.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular(10.r), customWidget: bannerPath.isNotEmpty && isbannerAdded ? Stack(children: [ Image.file( diff --git a/lib/Feed Module/Main_Screens/GroupTab/View/SubGroup/SubGroupInfo.dart b/lib/Feed Module/Main_Screens/GroupTab/View/SubGroup/SubGroupInfo.dart index 1d7e562..5257a44 100644 --- a/lib/Feed Module/Main_Screens/GroupTab/View/SubGroup/SubGroupInfo.dart +++ b/lib/Feed Module/Main_Screens/GroupTab/View/SubGroup/SubGroupInfo.dart @@ -77,12 +77,12 @@ class _SubGroupInfoState extends State { ), ), ], - child: commonGlassContainer( + child: commonGlassUI( opacity1: 0.24, opacity2: 0.24, width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( "assets/images/png/Vector536.png", @@ -90,19 +90,19 @@ class _SubGroupInfoState extends State { width: 17.w, ), ), - border: 0.5), + borderwidth: 0.5), ), sizedBoxWidth(16.w), GestureDetector( onTap: () { Get.toNamed(RouteName.editsubgroupinfo); }, - child: commonGlassContainer( + child: commonGlassUI( opacity1: 0.24, opacity2: 0.24, width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( "assets/images/png/codicon_account.png", @@ -110,7 +110,7 @@ class _SubGroupInfoState extends State { width: 20.w, ), ), - border: 0.5), + borderwidth: 0.5), ), sizedBoxWidth(16.w), PopupMenuButton( @@ -300,31 +300,31 @@ class _SubGroupInfoState extends State { sizedBoxHeight(16.h), Row( children: [ - commonGlassContainer( + commonGlassUI( width: 35.w, height: 35.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center( child: Image.asset("assets/images/png/Black.png", height: 20.h, width: 20.w), ), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(7.w), text16w400_FCFCFCblur("The athlectic town"), sizedBoxWidth(20.w), - commonGlassContainer( + commonGlassUI( width: 35.w, height: 35.h, opacity1: 0.24, opacity2: 0.24, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset("assets/images/png/img12.png", height: 20.h, width: 20.w), ), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(7.w), text16w400_FCFCFCblur("Public"), ], @@ -401,11 +401,11 @@ class _SubGroupInfoState extends State { } } - return commonGlassContainer( + return commonGlassUI( width: double.infinity, height: 570.h, - border: 0, - borderradius: 1, + borderwidth: 0, + borderRadius: BorderRadius.circular( 1), customWidget: Column( children: [ sizedBoxHeight(25.h), @@ -591,13 +591,13 @@ class _SubGroupInfoState extends State { ]), ), const Spacer(), - commonGlassContainer( - border: 0.43, + commonGlassUI( + borderwidth: 0.43, width: 30.w, height: 30.h, opacity1: 0.05, opacity2: 0.06, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( 'assets/images/png/Frame 1000004088.png', @@ -609,11 +609,11 @@ class _SubGroupInfoState extends State { sizedBoxWidth(12.w), text14w400_FCFCFC('20'), sizedBoxWidth(20.w), - commonGlassContainer( - border: 0.43, + commonGlassUI( + borderwidth: 0.43, width: 30.w, height: 30.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.05, opacity2: 0.06, customWidget: Center( @@ -751,11 +751,11 @@ class _SubGroupInfoState extends State { } Widget containertile({required String text}) { - return commonGlassContainer( - border: 1, + return commonGlassUI( + borderwidth: 1, width: 100.w, height: 30.h, - borderradius: 30.r, + borderRadius: BorderRadius.circular( 30.r), borderColor: const Color(0xFFD90B2E), customWidget: Padding( padding: EdgeInsets.symmetric(horizontal: 10.w), diff --git a/lib/Feed Module/Main_Screens/GroupTab/View/SubGroup/Subgroups.dart b/lib/Feed Module/Main_Screens/GroupTab/View/SubGroup/Subgroups.dart index 6b1b40d..c199809 100644 --- a/lib/Feed Module/Main_Screens/GroupTab/View/SubGroup/Subgroups.dart +++ b/lib/Feed Module/Main_Screens/GroupTab/View/SubGroup/Subgroups.dart @@ -109,11 +109,11 @@ class _SubGroupsState extends State { padding: EdgeInsets.only(bottom: 25.h), child: GestureDetector( onTap: ontap, - child: commonGlassContainer( - border: 0.9, + child: commonGlassUI( + borderwidth: 0.9, width: double.infinity, height: 162.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: Padding( padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 16.h), child: Column( diff --git a/lib/Feed Module/Main_Screens/ProfileTab/Clubs/Clubs.dart b/lib/Feed Module/Main_Screens/ProfileTab/Clubs/Clubs.dart index b592b83..323be4c 100644 --- a/lib/Feed Module/Main_Screens/ProfileTab/Clubs/Clubs.dart +++ b/lib/Feed Module/Main_Screens/ProfileTab/Clubs/Clubs.dart @@ -80,11 +80,11 @@ class _ClubsState extends State { padding: EdgeInsets.only(bottom: 25.h), child: GestureDetector( onTap: ontap, - child: commonGlassContainer( - border: 0.9, + child: commonGlassUI( + borderwidth: 0.9, width: double.infinity, height: 143.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: Padding( padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 16.h), child: Column( diff --git a/lib/Feed Module/Main_Screens/ProfileTab/Settings/AccountSessions.dart b/lib/Feed Module/Main_Screens/ProfileTab/Settings/AccountSessions.dart index be6b13d..a794031 100644 --- a/lib/Feed Module/Main_Screens/ProfileTab/Settings/AccountSessions.dart +++ b/lib/Feed Module/Main_Screens/ProfileTab/Settings/AccountSessions.dart @@ -129,22 +129,22 @@ class _AccountSessionState extends State { Widget sessionCard({required String title, required String devicename, required String ipaddress}) { return Padding( padding: const EdgeInsets.symmetric(vertical: 15), - child: commonGlassContainer( + child: commonGlassUI( width: double.infinity, height: 90.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: Padding( padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12), child: Column( children: [ Row( children: [ - commonGlassContainer( + commonGlassUI( width: 25.w, height: 25.h, opacity1: 0.24, opacity2: 0.24, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( "assets/images/png/Group 58645.png", @@ -152,7 +152,7 @@ class _AccountSessionState extends State { width: 9.w, ), ), - border: 1), + borderwidth: 1), sizedBoxWidth(10.w), text16400white(title), ], @@ -174,7 +174,7 @@ class _AccountSessionState extends State { ], ), ), - border: 1), + borderwidth: 1), ); } } diff --git a/lib/Feed Module/Main_Screens/ProfileTab/Settings/FaqScreen.dart b/lib/Feed Module/Main_Screens/ProfileTab/Settings/FaqScreen.dart index ebb976d..f31f0bc 100644 --- a/lib/Feed Module/Main_Screens/ProfileTab/Settings/FaqScreen.dart +++ b/lib/Feed Module/Main_Screens/ProfileTab/Settings/FaqScreen.dart @@ -169,10 +169,10 @@ class _FaqScreenState extends State { child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - commonGlassContainer( + commonGlassUI( width: double.infinity, height: isExpanded ? 250.h : 82.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: SingleChildScrollView( child: Padding( padding: @@ -207,7 +207,7 @@ class _FaqScreenState extends State { ), ), ), - border: 1), + borderwidth: 1), ], ), ); diff --git a/lib/Feed Module/Main_Screens/ProfileTab/Settings/Settings.dart b/lib/Feed Module/Main_Screens/ProfileTab/Settings/Settings.dart index 2cc16c7..d04c305 100644 --- a/lib/Feed Module/Main_Screens/ProfileTab/Settings/Settings.dart +++ b/lib/Feed Module/Main_Screens/ProfileTab/Settings/Settings.dart @@ -212,13 +212,13 @@ class _SettingsState extends State { dialogwidget() { Get.dialog(Dialog( backgroundColor: Colors.transparent, - child: commonGlassContainer( + child: commonGlassUI( width: double.infinity, height: 200.h, - borderradius: 14, + borderRadius: BorderRadius.circular( 14), opacity1: 0.09, opacity2: 0.13, - border: 0.8, + borderwidth: 0.8, customWidget: Padding( padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 20.h), child: Column( @@ -239,15 +239,15 @@ class _SettingsState extends State { // Get.offAllNamed(RouteName.loginScreen); Uploadata(); }, - child: commonGlassContainer( + child: commonGlassUI( width: 130.w, height: 40.h, - borderradius: 30.r, + borderRadius: BorderRadius.circular( 30.r), opacity1: 0.05, opacity2: 0.07, customWidget: Center(child: text14400white("Yes, I want to")), - border: 1), + borderwidth: 1), ), Container( height: 40.h, diff --git a/lib/Feed Module/Main_Screens/ProfileTab/Settings/View/BlockedUsers.dart b/lib/Feed Module/Main_Screens/ProfileTab/Settings/View/BlockedUsers.dart index edfb5b6..630a908 100644 --- a/lib/Feed Module/Main_Screens/ProfileTab/Settings/View/BlockedUsers.dart +++ b/lib/Feed Module/Main_Screens/ProfileTab/Settings/View/BlockedUsers.dart @@ -436,10 +436,10 @@ class _BlockedUsersState extends State { Get.dialog(Dialog( backgroundColor: Colors.transparent, surfaceTintColor: Colors.transparent, - child: commonGlassContainer( + child: commonGlassUI( width: double.infinity, height: 200.h, - borderradius: 14, + borderRadius: BorderRadius.circular(14), opacity1: 0.09, opacity2: 0.13, customWidget: Padding( @@ -458,14 +458,14 @@ class _BlockedUsersState extends State { onTap: () { Get.back(); }, - child: commonGlassContainer( + child: commonGlassUI( width: 110.w, height: 40.h, - borderradius: 30.r, + borderRadius: BorderRadius.circular( 30.r), opacity1: 0.05, opacity2: 0.07, customWidget: Center(child: text14400white("No")), - border: 1), + borderwidth: 1), ), InkWell( onTap: () { @@ -490,7 +490,7 @@ class _BlockedUsersState extends State { ], ), ), - border: 0.8))); + borderwidth: 0.8))); } Widget blockedUser({ diff --git a/lib/Feed Module/Main_Screens/ProfileTab/Share profile/ShareProfile.dart b/lib/Feed Module/Main_Screens/ProfileTab/Share profile/ShareProfile.dart index ee9b84a..aefe03f 100644 --- a/lib/Feed Module/Main_Screens/ProfileTab/Share profile/ShareProfile.dart +++ b/lib/Feed Module/Main_Screens/ProfileTab/Share profile/ShareProfile.dart @@ -148,9 +148,9 @@ class _ShareProfileState extends State { ], ), Spacer(), - commonGlassContainer( - border: 1, - borderradius: 2, + commonGlassUI( + borderwidth: 1, + borderRadius: BorderRadius.circular( 2), height: 23.h, width: 23.w, opacity1: 0.24, diff --git a/lib/Feed Module/Main_Screens/ProfileTab/TimeLine/AddTimeline.dart b/lib/Feed Module/Main_Screens/ProfileTab/TimeLine/AddTimeline.dart index da21a2f..9508a1b 100644 --- a/lib/Feed Module/Main_Screens/ProfileTab/TimeLine/AddTimeline.dart +++ b/lib/Feed Module/Main_Screens/ProfileTab/TimeLine/AddTimeline.dart @@ -403,9 +403,9 @@ class _AddTimelineState extends State { Row( children: [ Obx(() { - return commonGlassContainer( - border: 1, - borderradius: 2, + return commonGlassUI( + borderwidth: 1, + borderRadius: BorderRadius.circular(2), height: 20.h, width: 20.w, opacity1: 0.24, @@ -677,9 +677,9 @@ class _AddTimelineState extends State { Row( children: [ Obx(() { - return commonGlassContainer( - border: 1, - borderradius: 2, + return commonGlassUI( + borderwidth: 1, + borderRadius: BorderRadius.circular( 2), height: 20.h, width: 20.w, opacity1: 0.24, diff --git a/lib/Feed Module/Notification/View/notification.dart b/lib/Feed Module/Notification/View/notification.dart index 619f56b..f1be26f 100644 --- a/lib/Feed Module/Notification/View/notification.dart +++ b/lib/Feed Module/Notification/View/notification.dart @@ -58,47 +58,14 @@ class _NotificationPageState extends State { body: Stack( children: [ // const CommonBlurLeftRed(), - const Positioned(top: 10, left: -30, child: CommonBlurLeftSecond()), - // const CommonBlurRightRed(), - // const CommonBlurLeft(), - const Positioned(top: 150, right: -30, child: CommonBlurRightSecond()), - const Positioned(top: 350, left: -30, child: CommonBlurLeftBlue()), - GlassmorphicContainer( - width: MediaQuery.of(context).size.width, - height: - // 500.h, - MediaQuery.of(context).size.height, - borderRadius: 2, - blur: 6, - alignment: Alignment.bottomLeft, - border: 2, - linearGradient: LinearGradient( - begin: Alignment.topCenter, - end: Alignment.bottomCenter, - colors: [ - const Color(0XFF222935).withOpacity(0.60), - const Color(0XFF222935).withOpacity(0.60), - const Color(0XFF222935).withOpacity(0.60), - const Color(0XFF222935).withOpacity(0.60), - - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - ], - ), - borderGradient: LinearGradient( - begin: Alignment.topCenter, - end: Alignment.bottomCenter, - colors: [ - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - const Color(0XFF222935).withOpacity(0.60), - - const Color(0XFF222935).withOpacity(0.60), - ], - ), - child: Column( + + Container( + decoration: const BoxDecoration( + image: DecorationImage( + image: AssetImage("assets/images/png/Ellipse 1496.png"), + fit: BoxFit.fill)), + ), + Column( children: [ ListView.separated( separatorBuilder: (context, index) { @@ -121,9 +88,9 @@ class _NotificationPageState extends State { }, ), ], - )), - ], - ), + )]), + + ); } } diff --git a/lib/Feed Module/sidemenu/Community/Admin/PopupItem/Community settings/EditCommunity/EditCommunity.dart b/lib/Feed Module/sidemenu/Community/Admin/PopupItem/Community settings/EditCommunity/EditCommunity.dart index 0a14f8b..24b944b 100644 --- a/lib/Feed Module/sidemenu/Community/Admin/PopupItem/Community settings/EditCommunity/EditCommunity.dart +++ b/lib/Feed Module/sidemenu/Community/Admin/PopupItem/Community settings/EditCommunity/EditCommunity.dart @@ -150,11 +150,11 @@ class _EditCommunityState extends State { borderType: BorderType.RRect, radius: Radius.circular(14.r), color: Color(0xFF434A53), - child: commonGlassContainer( - border: 0, + child: commonGlassUI( + borderwidth: 0, width: double.infinity, height: 150.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: bannerPath.isNotEmpty && isbannerAdded ? Stack(children: [ Image.file( @@ -210,10 +210,10 @@ class _EditCommunityState extends State { ), ), sizedBoxHeight(16.w), - commonGlassContainer( + commonGlassUI( width: double.infinity, height: 60.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: Center( child: Padding( padding: EdgeInsets.symmetric(horizontal: 12.w), @@ -247,7 +247,7 @@ class _EditCommunityState extends State { ]), ), ), - border: 1), + borderwidth: 1), sizedBoxHeight(25.h), text16w400_FCFCFC("Community name"), sizedBoxHeight(14.h), diff --git a/lib/Feed Module/sidemenu/Community/Admin/PopupItem/Community settings/ManageGroup.dart b/lib/Feed Module/sidemenu/Community/Admin/PopupItem/Community settings/ManageGroup.dart index 6dbf089..cdc9002 100644 --- a/lib/Feed Module/sidemenu/Community/Admin/PopupItem/Community settings/ManageGroup.dart +++ b/lib/Feed Module/sidemenu/Community/Admin/PopupItem/Community settings/ManageGroup.dart @@ -105,19 +105,19 @@ class _ManageGroupsState extends State { sizedBoxHeight(25.h), Row( children: [ - commonGlassContainer( + commonGlassUI( opacity1: 0.24, opacity2: 0.24, width: 50.w, height: 50.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( "assets/images/png/Black.png", height: 30.h, width: 30.w, )), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(8.w), text18w400_FCFCFC("Create group"), Spacer(), diff --git a/lib/Feed Module/sidemenu/Community/Admin/PopupItem/Community settings/ManageTags.dart/ManageTags.dart b/lib/Feed Module/sidemenu/Community/Admin/PopupItem/Community settings/ManageTags.dart/ManageTags.dart index 0bacc8b..75bbbcd 100644 --- a/lib/Feed Module/sidemenu/Community/Admin/PopupItem/Community settings/ManageTags.dart/ManageTags.dart +++ b/lib/Feed Module/sidemenu/Community/Admin/PopupItem/Community settings/ManageTags.dart/ManageTags.dart @@ -167,22 +167,22 @@ Widget rowTagRequestTile({ }) { return Padding( padding: EdgeInsets.symmetric(horizontal: 16.w), - child: commonGlassContainer( + child: commonGlassUI( width: double.infinity, height: 60.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: Center( child: Padding( padding: EdgeInsets.symmetric(horizontal: 16.w), child: Row(children: [ text16w700_FCFCFC(title), Spacer(), - commonGlassContainer( + commonGlassUI( width: 35.w, height: 35.h, opacity1: 0.24, opacity2: 0.24, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Icon( Icons.clear, @@ -190,7 +190,7 @@ Widget rowTagRequestTile({ color: Colors.white, weight: 1, )), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(16.w), Container( height: 35.h, @@ -209,7 +209,7 @@ Widget rowTagRequestTile({ ]), ), ), - border: 1), + borderwidth: 1), ); } diff --git a/lib/Feed Module/sidemenu/Community/Announcements/AnnouncementRequest.dart b/lib/Feed Module/sidemenu/Community/Announcements/AnnouncementRequest.dart index 6299508..20b3103 100644 --- a/lib/Feed Module/sidemenu/Community/Announcements/AnnouncementRequest.dart +++ b/lib/Feed Module/sidemenu/Community/Announcements/AnnouncementRequest.dart @@ -52,11 +52,11 @@ class _AnnouncementRequestState extends State { required String title, required String mainImg, }) { - return commonGlassContainer( + return commonGlassUI( width: double.infinity, height: 400.h, - borderradius: 10.r, - border: 1, + borderRadius: BorderRadius.circular( 10.r), + borderwidth: 1, customWidget: Padding( padding: const EdgeInsets.symmetric(horizontal: 16), child: Column(children: [ @@ -103,14 +103,14 @@ class _AnnouncementRequestState extends State { Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - commonGlassContainer( + commonGlassUI( width: 149.w, height: 30.h, opacity1: 0.05, opacity2: 0.07, - borderradius: 30.r, + borderRadius: BorderRadius.circular( 30.r), customWidget: Center(child: text12w400_FCFCFC("Decline")), - border: 1), + borderwidth: 1), Container( height: 30.h, width: 150.h, diff --git a/lib/Feed Module/sidemenu/Community/Announcements/ManageMembers.dart b/lib/Feed Module/sidemenu/Community/Announcements/ManageMembers.dart index 64c2bb4..76aea4d 100644 --- a/lib/Feed Module/sidemenu/Community/Announcements/ManageMembers.dart +++ b/lib/Feed Module/sidemenu/Community/Announcements/ManageMembers.dart @@ -144,10 +144,10 @@ class _ManageMembersState extends State { hintText: "Start date - End date", )), Spacer(), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center( @@ -157,7 +157,7 @@ class _ManageMembersState extends State { width: 23.w, ), ), - border: 0.5) + borderwidth: 0.5) ], ), ], @@ -237,32 +237,32 @@ class _ManageMembersState extends State { sizedBoxHeight(16.h), Row( children: [ - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("M")), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(15.w), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("Tu")), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(15.w), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("W")), - border: 0.5), + borderwidth: 0.5), Spacer(), Row( children: [ @@ -282,32 +282,32 @@ class _ManageMembersState extends State { sizedBoxHeight(20.h), Row( children: [ - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular(100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("Th")), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(15.w), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("F")), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(15.w), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular(100), opacity1: 0.24, opacity2: 0.24, customWidget: Center(child: text16w400_FCFCFC("Sa")), - border: 0.5), + borderwidth: 0.5), Spacer(), Row( children: [ @@ -416,10 +416,10 @@ class _ManageMembersState extends State { hintText: "Start date - End date", )), Spacer(), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center( @@ -429,7 +429,7 @@ class _ManageMembersState extends State { width: 23.w, ), ), - border: 0.5) + borderwidth: 0.5) ], ), ], @@ -540,10 +540,10 @@ class _ManageMembersState extends State { hintText: "Start date - End date", )), Spacer(), - commonGlassContainer( + commonGlassUI( width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular(100), opacity1: 0.24, opacity2: 0.24, customWidget: Center( @@ -553,7 +553,7 @@ class _ManageMembersState extends State { width: 23.w, ), ), - border: 0.5) + borderwidth: 0.5) ], ), ], diff --git a/lib/Feed Module/sidemenu/Community/Announcements/NewAnnouncement/NewAnnounceent.dart b/lib/Feed Module/sidemenu/Community/Announcements/NewAnnouncement/NewAnnounceent.dart index a99b5bd..07238df 100644 --- a/lib/Feed Module/sidemenu/Community/Announcements/NewAnnouncement/NewAnnounceent.dart +++ b/lib/Feed Module/sidemenu/Community/Announcements/NewAnnouncement/NewAnnounceent.dart @@ -41,17 +41,17 @@ class _NewAnnouncementState extends State { sizedBoxHeight(20.h), text16w400_FCFCFC("Description"), sizedBoxHeight(30.h), - commonGlassContainer( + commonGlassUI( width: double.infinity, height: 150.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: Padding( padding: EdgeInsets.symmetric(horizontal: 12.w, vertical: 12.h), child: text14w400_FCFCFCblur( "Lorem Ipsum has been the industry's standard dummy text ever since the 1500s . . .Lorem Ipsum has been the industry's standard dummy text ever since the 1500s . . ."), ), - border: 1), + borderwidth: 1), sizedBoxHeight(80.h), CustomButton( text: "Post", diff --git a/lib/Feed Module/sidemenu/Community/Announcements/View/Announcements.dart b/lib/Feed Module/sidemenu/Community/Announcements/View/Announcements.dart index 2b2493a..4a4ab44 100644 --- a/lib/Feed Module/sidemenu/Community/Announcements/View/Announcements.dart +++ b/lib/Feed Module/sidemenu/Community/Announcements/View/Announcements.dart @@ -130,10 +130,10 @@ Widget announcementWidget({ required String date, required String subtitle, }) { - return commonGlassContainer( + return commonGlassUI( width: double.infinity, height: 120.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: Padding( padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 12.h), child: Column( @@ -155,5 +155,5 @@ Widget announcementWidget({ ], ), ), - border: 1); + borderwidth: 1); } diff --git a/lib/Feed Module/sidemenu/Community/Group/view/Group.dart b/lib/Feed Module/sidemenu/Community/Group/view/Group.dart index 11ba615..6987dbb 100644 --- a/lib/Feed Module/sidemenu/Community/Group/view/Group.dart +++ b/lib/Feed Module/sidemenu/Community/Group/view/Group.dart @@ -39,7 +39,7 @@ class _GroupState extends State { }, ]; - late Future myfuture; + late Future myfuture; int id = Get.arguments["id"]; @override @@ -134,11 +134,11 @@ class _GroupState extends State { padding: EdgeInsets.only(bottom: 25.h), child: GestureDetector( onTap: () {}, - child: commonGlassContainer( - border: 0.9, + child: commonGlassUI( + borderwidth: 0.9, width: double.infinity, height: 162.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular(10.r), customWidget: Padding( padding: EdgeInsets.symmetric( horizontal: 16.w, vertical: 16.h), @@ -236,11 +236,12 @@ class _GroupState extends State { ), Spacer(), PopupMenuButton( - surfaceTintColor: Color(0xFF222935), + surfaceTintColor: + const Color(0xFF222935), constraints: BoxConstraints.tightFor( width: 200.w), - offset: Offset(0, 30), - color: Color(0xFF222935), + offset: const Offset(0, 30), + color: const Color(0xFF222935), tooltip: "", itemBuilder: (BuildContext context) => [ @@ -252,8 +253,8 @@ class _GroupState extends State { child: Row( children: [ text14w400_FCFCFC( - "Mute community"), - Spacer(), + "Mute group"), + const Spacer(), Image.asset( "assets/images/png/Black (1).png", height: 18.h, @@ -263,7 +264,7 @@ class _GroupState extends State { ), ), ), - PopupMenuDivider(), + const PopupMenuDivider(), PopupMenuItem( onTap: () {}, child: Padding( @@ -272,10 +273,30 @@ class _GroupState extends State { child: Row( children: [ text14w400_FCFCFC( - "Hide post"), - Spacer(), + "Pin group"), + const Spacer(), Image.asset( - "assets/images/png/mingcute_eye-close-line.png", + "assets/images/png/f7_pin-fill (2).png", + height: 27.h, + width: 27.w, + ) + ], + ), + ), + ), + const PopupMenuDivider(), + PopupMenuItem( + onTap: () {}, + child: Padding( + padding: EdgeInsets.symmetric( + horizontal: 8.w), + child: Row( + children: [ + text14w400_FCFCFC( + "Make primary"), + const Spacer(), + Image.asset( + "assets/images/png/leave group.png", height: 20.h, width: 20.w, ) @@ -283,7 +304,7 @@ class _GroupState extends State { ), ), ), - PopupMenuDivider(), + const PopupMenuDivider(), PopupMenuItem( onTap: () {}, child: Padding( @@ -291,30 +312,12 @@ class _GroupState extends State { horizontal: 8.w), child: Row( children: [ - text14w400_FCFCFC("Pin"), - Spacer(), + // text14w400_FCFCFC("Leave group"), + text14w400_D90B2E( + "Leave group"), + const Spacer(), Image.asset( - "assets/images/png/f7_pin-fill (2).png", - height: 25.h, - width: 25.w, - ) - ], - ), - ), - ), - PopupMenuDivider(), - PopupMenuItem( - onTap: () {}, - child: Padding( - padding: EdgeInsets.symmetric( - horizontal: 8.w), - child: Row( - children: [ - text14w400_FCFCFC( - "Leave community"), - Spacer(), - Image.asset( - "assets/images/png/logout 1 (traced).png", + "assets/images/png/LightGray22.png", height: 18.h, width: 18.w, ) @@ -325,8 +328,8 @@ class _GroupState extends State { ], child: Image.asset( "assets/images/png/Group 1000004071.png", - height: 13.h, - width: 3.w, + height: 18.h, + width: 20.w, )), ], ), @@ -335,7 +338,6 @@ class _GroupState extends State { sizedBoxHeight(10.h), Row( children: [ - stackContainersGroups( number: joinedgroupsobj! .data![index].membersCount diff --git a/lib/Feed Module/sidemenu/Community/MyCommunity/AddGroups.dart b/lib/Feed Module/sidemenu/Community/MyCommunity/AddGroups.dart index e02620a..5ed63b8 100644 --- a/lib/Feed Module/sidemenu/Community/MyCommunity/AddGroups.dart +++ b/lib/Feed Module/sidemenu/Community/MyCommunity/AddGroups.dart @@ -84,19 +84,19 @@ class _AddGroupState extends State { sizedBoxHeight(25.h), Row( children: [ - commonGlassContainer( + commonGlassUI( opacity1: 0.24, opacity2: 0.24, width: 50.w, height: 50.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( "assets/images/png/Black.png", height: 30.h, width: 30.w, )), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(8.w), text18w400_FCFCFC("Create group"), Spacer(), @@ -175,9 +175,9 @@ class _AddGroupState extends State { ), Spacer(), Obx(() { - return commonGlassContainer( - border: isCheckedList[index] ? 1.2 : 0.9, - borderradius: 2, + return commonGlassUI( + borderwidth: isCheckedList[index] ? 1.2 : 0.9, + borderRadius: BorderRadius.circular( 2), height: 23.h, width: 23.w, opacity1: 0.24, diff --git a/lib/Feed Module/sidemenu/Community/MyCommunity/Community_Info-Page/view/communityInfo.dart b/lib/Feed Module/sidemenu/Community/MyCommunity/Community_Info-Page/view/communityInfo.dart index 8be3ddf..e1a2d13 100644 --- a/lib/Feed Module/sidemenu/Community/MyCommunity/Community_Info-Page/view/communityInfo.dart +++ b/lib/Feed Module/sidemenu/Community/MyCommunity/Community_Info-Page/view/communityInfo.dart @@ -92,10 +92,10 @@ class _CommunityInfoState extends State { sizedBoxHeight(30.h), Row( children: [ - commonGlassContainer( + commonGlassUI( width: 35.w, height: 35.h, - borderradius: 100.r, + borderRadius: BorderRadius.circular( 100.r), customWidget: Center( child: Image.asset( "assets/images/png/Group 58645.png", @@ -103,7 +103,7 @@ class _CommunityInfoState extends State { width: 13.w, ), ), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(8.w), text16w400_white("Elm street london, United Kingdom") ], @@ -111,10 +111,10 @@ class _CommunityInfoState extends State { sizedBoxHeight(15.h), Row( children: [ - commonGlassContainer( + commonGlassUI( width: 35.w, height: 35.h, - borderradius: 100.r, + borderRadius: BorderRadius.circular( 100.r), customWidget: Center( child: Image.asset( "assets/images/png/puzzle-pieces 1 (traced).png", @@ -122,7 +122,7 @@ class _CommunityInfoState extends State { width: 20.w, ), ), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(8.w), text16w400_white("Sports") ], diff --git a/lib/Feed Module/sidemenu/Community/MyCommunity/NewCommunity.dart b/lib/Feed Module/sidemenu/Community/MyCommunity/NewCommunity.dart index c3b1e58..e2a2878 100644 --- a/lib/Feed Module/sidemenu/Community/MyCommunity/NewCommunity.dart +++ b/lib/Feed Module/sidemenu/Community/MyCommunity/NewCommunity.dart @@ -65,10 +65,10 @@ class _NewCommunityState extends State { }, ); }, - child: commonGlassContainer( + child: commonGlassUI( width: 95.w, height: 95.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: filePath.isNotEmpty && isImageAdded @@ -89,7 +89,7 @@ class _NewCommunityState extends State { width: 30.w, ), ), - border: 0.5), + borderwidth: 0.5), ), ), sizedBoxHeight(20.h), @@ -117,11 +117,11 @@ class _NewCommunityState extends State { borderType: BorderType.RRect, radius: Radius.circular(14.r), color: Color(0xFF434A53), - child: commonGlassContainer( - border: 0, + child: commonGlassUI( + borderwidth: 0, width: double.infinity, height: 130.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular(10.r), customWidget: bannerPath.isNotEmpty && isbannerAdded ? Stack(children: [ Image.file( diff --git a/lib/Feed Module/sidemenu/Community/MyCommunity/View/CommunityDetails.dart b/lib/Feed Module/sidemenu/Community/MyCommunity/View/CommunityDetails.dart index ceadd24..4752758 100644 --- a/lib/Feed Module/sidemenu/Community/MyCommunity/View/CommunityDetails.dart +++ b/lib/Feed Module/sidemenu/Community/MyCommunity/View/CommunityDetails.dart @@ -210,10 +210,10 @@ class _CommunityDetailsState extends State { children: [ text20w700_FCFCFC("Active alliance network"), Spacer(), - commonGlassContainer( + commonGlassUI( width: 35.w, height: 35.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.24, opacity2: 0.24, customWidget: Center( @@ -222,16 +222,16 @@ class _CommunityDetailsState extends State { height: 18.w, width: 18.w, )), - border: 0.5), + borderwidth: 0.5), sizedBoxWidth(8.w), text16w400_FCFCFCblur("Public"), ], ), sizedBoxHeight(20.h), - commonGlassContainer( + commonGlassUI( width: double.infinity, height: 51.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ @@ -260,16 +260,16 @@ class _CommunityDetailsState extends State { ), ], ), - border: 1.w), + borderwidth: 1.w), sizedBoxHeight(20.h), GestureDetector( onTap: () { Get.toNamed(RouteName.addgroup); }, - child: commonGlassContainer( + child: commonGlassUI( width: double.infinity, height: 51.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: Padding( padding: EdgeInsets.symmetric(horizontal: 16.w), child: Column( @@ -293,17 +293,17 @@ class _CommunityDetailsState extends State { ], ), ), - border: 1), + borderwidth: 1), ), sizedBoxHeight(20.h), GestureDetector( onTap: () { Get.toNamed(RouteName.announcement); }, - child: commonGlassContainer( + child: commonGlassUI( width: double.infinity, height: 51.h, - borderradius: 10.r, + borderRadius: BorderRadius.circular( 10.r), customWidget: Padding( padding: EdgeInsets.symmetric(horizontal: 16.w), child: Column( @@ -331,7 +331,7 @@ class _CommunityDetailsState extends State { ], ), ), - border: 1), + borderwidth: 1), ), sizedBoxHeight(35.h), Container( @@ -598,13 +598,13 @@ class _CommunityDetailsState extends State { 'assets/images/png/party-popper 2.png' ]), Spacer(), - commonGlassContainer( - border: 0.43, + commonGlassUI( + borderwidth: 0.43, width: 30.w, height: 30.h, opacity1: 0.05, opacity2: 0.06, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), customWidget: Center( child: Image.asset( 'assets/images/png/Frame 1000004088.png', @@ -616,11 +616,11 @@ class _CommunityDetailsState extends State { sizedBoxWidth(12.w), text14w400_FCFCFC('20'), sizedBoxWidth(20.w), - commonGlassContainer( - border: 0.43, + commonGlassUI( + borderwidth: 0.43, width: 30.w, height: 30.h, - borderradius: 100, + borderRadius: BorderRadius.circular( 100), opacity1: 0.05, opacity2: 0.06, customWidget: Center( @@ -753,11 +753,11 @@ class _CommunityDetailsState extends State { } Widget containertile({required String text}) { - return commonGlassContainer( - border: 1, + return commonGlassUI( + borderwidth: 1, width: 100.w, height: 30.h, - borderradius: 30.r, + borderRadius: BorderRadius.circular( 30.r), borderColor: Color(0xFFD90B2E), customWidget: Padding( padding: EdgeInsets.symmetric(horizontal: 10.w), diff --git a/lib/Feed Module/sidemenu/Community/MyCommunity/View/MyCommunity.dart b/lib/Feed Module/sidemenu/Community/MyCommunity/View/MyCommunity.dart index 41c9543..aafab8f 100644 --- a/lib/Feed Module/sidemenu/Community/MyCommunity/View/MyCommunity.dart +++ b/lib/Feed Module/sidemenu/Community/MyCommunity/View/MyCommunity.dart @@ -198,11 +198,11 @@ class _MyCommunityState extends State { Row( children: [ Stack(clipBehavior: Clip.none, children: [ - commonGlassContainer( - border: 0.9, + commonGlassUI( + borderwidth: 0.9, width: 30.w, height: 30.h, - borderradius: 100.r, + borderRadius: BorderRadius.circular(100.r), opacity1: 0.24, opacity2: 0.24, customWidget: Center( diff --git a/lib/Login/View/verifygoogleapple.dart b/lib/Login/View/verifygoogleapple.dart index cd8df8d..40796f0 100644 --- a/lib/Login/View/verifygoogleapple.dart +++ b/lib/Login/View/verifygoogleapple.dart @@ -102,45 +102,54 @@ class _VerifygoogleandappleState extends State { backgroundColor: const Color.fromARGB(255, 18, 32, 47), body: Stack( children: [ - const Positioned( - top: 310, right: -30, child: CommonBlurRightSecond()), - const Positioned(top: 510, left: -30, child: CommonBlurLeftBlue()), - GlassmorphicContainer( - width: MediaQuery.of(context).size.width, - height: - // 500.h, - MediaQuery.of(context).size.height, - borderRadius: 2, - blur: 6, - alignment: Alignment.bottomLeft, - border: 2, - linearGradient: LinearGradient( - begin: Alignment.topCenter, - end: Alignment.bottomCenter, - colors: [ - const Color(0XFF222935).withOpacity(0.60), - const Color(0XFF222935).withOpacity(0.60), - const Color(0XFF222935).withOpacity(0.60), - const Color(0XFF222935).withOpacity(0.60), + + + // Positioned( + // top: 310, right: -30, child: CommonBlurRightSecond()), + // const Positioned(top: 510, left: -30, child: CommonBlurLeftBlue()), + // GlassmorphicContainer( + // width: MediaQuery.of(context).size.width, + // height: + // // 500.h, + // MediaQuery.of(context).size.height, + // borderRadius: 2, + // blur: 6, + // alignment: Alignment.bottomLeft, + // border: 2, + // linearGradient: LinearGradient( + // begin: Alignment.topCenter, + // end: Alignment.bottomCenter, + // colors: [ + // const Color(0XFF222935).withOpacity(0.60), + // const Color(0XFF222935).withOpacity(0.60), + // const Color(0XFF222935).withOpacity(0.60), + // const Color(0XFF222935).withOpacity(0.60), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - ], - ), - borderGradient: LinearGradient( - begin: Alignment.topCenter, - end: Alignment.bottomCenter, - colors: [ - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - const Color(0XFF222935).withOpacity(0.60), + // // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), + // // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), + // // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), + // // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), + // ], + // ), + // borderGradient: LinearGradient( + // begin: Alignment.topCenter, + // end: Alignment.bottomCenter, + // colors: [ + // // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), + // // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), + // const Color(0XFF222935).withOpacity(0.60), - const Color(0XFF222935).withOpacity(0.60), - ], - ), - child: Padding( + // const Color(0XFF222935).withOpacity(0.60), + // ], + // ), + Container( + decoration: const BoxDecoration( + image: DecorationImage( + image: AssetImage("assets/images/png/Ellipse 1496.png"), + fit: BoxFit.fill)), + ), + + Padding( padding: EdgeInsets.symmetric(horizontal: 16.w), child: Column( crossAxisAlignment: CrossAxisAlignment.start, @@ -234,10 +243,8 @@ class _VerifygoogleandappleState extends State { ], ), ), - ) - ], - ), - ), - ); + ] ) + + )); } } diff --git a/lib/Utils/Common/CommonAppbar.dart b/lib/Utils/Common/CommonAppbar.dart index 614fd4b..7289a27 100644 --- a/lib/Utils/Common/CommonAppbar.dart +++ b/lib/Utils/Common/CommonAppbar.dart @@ -129,11 +129,11 @@ class CommonAppbar extends StatelessWidget implements PreferredSizeWidget { child: Row( children: [ sizedBoxWidth(10.w), - commonGlassContainer( - border: 0.5, + commonGlassUI( + borderwidth: 0.5, width: 40.w, height: 40.h, - borderradius: 100, + borderRadius: BorderRadius.circular(100), opacity1: 0.24, opacity2: 0.24, customWidget: Center( diff --git a/lib/Utils/texts.dart b/lib/Utils/texts.dart index d796b52..52531db 100644 --- a/lib/Utils/texts.dart +++ b/lib/Utils/texts.dart @@ -45,9 +45,10 @@ Widget text20400white(String text) { ); } -Widget text20400FCFCFC(String text) { +Widget text20400FCFCFC(String text, {TextAlign? textAlign}) { return Text( text, + textAlign: textAlign, style: TextStyle( fontSize: 20.sp, color: const Color(0xFFFCFCFC), @@ -172,6 +173,18 @@ Widget text144005DFD63(String text) { ); } +Widget text13400A7A7A7(String text) { + return Text( + text, + // textAlign: TextAlign.center, + style: TextStyle( + fontSize: 13.sp, + color: const Color(0xFFA7A7A7), + fontWeight: FontWeight.w400, + fontFamily: 'Helvetica'), + ); +} + Widget text14400whiteblur(String text, {TextAlign? textAlign}) { return Text( text, @@ -382,9 +395,10 @@ Widget txt20Black(txt) { ); } -Widget text16w400_FCFCFC(String text) { +Widget text16w400_FCFCFC(String text, {TextAlign? textAlign}) { return Text( text, + textAlign: textAlign, style: TextStyle( fontSize: 16.sp, color: const Color(0xFFFCFCFC), @@ -447,9 +461,10 @@ Widget text10400whiteblur(String text) { ); } -Widget text16w700_FCFCFC(String text) { +Widget text16w700_FCFCFC(String text, {TextAlign? textAlign}) { return Text( text, + textAlign: textAlign, style: TextStyle( fontSize: 16.sp, color: const Color(0xFFFCFCFC), diff --git a/lib/main.dart b/lib/main.dart index 325010a..94915d5 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -122,7 +122,9 @@ class _MyAppState extends State with WidgetsBindingObserver { fontFamily: 'Cambria', ), debugShowCheckedModeBanner: false, - initialRoute: RouteName.splashScreen, + // initialRoute: RouteName.individualactivitystep2, + initialRoute: RouteName.individualactivitystep2, + getPages: AppRoutes.appRoutes(), ), designSize: const Size(390, 844), diff --git a/lib/onboarding/Signup/View/Business/View/step2Selectgroup.dart b/lib/onboarding/Signup/View/Business/View/step2Selectgroup.dart index 514e86c..85da716 100644 --- a/lib/onboarding/Signup/View/Business/View/step2Selectgroup.dart +++ b/lib/onboarding/Signup/View/Business/View/step2Selectgroup.dart @@ -29,46 +29,14 @@ class _SelectgroupStep2State extends State { backgroundColor: Color.fromARGB(255, 18, 32, 47), body: Stack( children: [ - Positioned(top: 70, left: -30, child: CommonBlurLeftSecond()), - Positioned(top: 400, right: -30, child: CommonBlurRightSecond()), - Positioned(top: 630, left: -30, child: CommonBlurLeftBlue()), - SingleChildScrollView( - child: GlassmorphicContainer( - width: MediaQuery.of(context).size.width, - height: - // 500.h, - MediaQuery.of(context).size.height, - borderRadius: 2, - blur: 6, - alignment: Alignment.bottomLeft, - border: 2, - linearGradient: LinearGradient( - begin: Alignment.topCenter, - end: Alignment.bottomCenter, - colors: [ - Color(0XFF222935).withOpacity(0.60), - Color(0XFF222935).withOpacity(0.60), - Color(0XFF222935).withOpacity(0.60), - Color(0XFF222935).withOpacity(0.60), - - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - ], - ), - borderGradient: LinearGradient( - begin: Alignment.topCenter, - end: Alignment.bottomCenter, - colors: [ - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - Color(0XFF222935).withOpacity(0.60), - - Color(0XFF222935).withOpacity(0.60), - ], - ), - child: Padding( + Container( + decoration: const BoxDecoration( + image: DecorationImage( + image: AssetImage("assets/images/png/Ellipse 1496.png"), + fit: BoxFit.fill)), + ), + + Padding( padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 50.h), child: Column( @@ -241,10 +209,10 @@ class _SelectgroupStep2State extends State { }) ], ), - )), - ), - ], - )); + )],), + + + ); } } diff --git a/lib/onboarding/Signup/View/Business/View/step3SelectCommunity.dart b/lib/onboarding/Signup/View/Business/View/step3SelectCommunity.dart index 9a678d8..4f16c3f 100644 --- a/lib/onboarding/Signup/View/Business/View/step3SelectCommunity.dart +++ b/lib/onboarding/Signup/View/Business/View/step3SelectCommunity.dart @@ -29,46 +29,13 @@ class _SelectBusinessCommunityState extends State { backgroundColor: const Color.fromARGB(255, 18, 32, 47), body: Stack( children: [ - const Positioned(top: 70, left: -30, child: CommonBlurLeftSecond()), - const Positioned(top: 400, right: -30, child: CommonBlurRightSecond()), - const Positioned(top: 630, left: -30, child: CommonBlurLeftBlue()), - SingleChildScrollView( - child: GlassmorphicContainer( - width: MediaQuery.of(context).size.width, - height: - // 500.h, - MediaQuery.of(context).size.height, - borderRadius: 2, - blur: 6, - alignment: Alignment.bottomLeft, - border: 2, - linearGradient: LinearGradient( - begin: Alignment.topCenter, - end: Alignment.bottomCenter, - colors: [ - const Color(0XFF222935).withOpacity(0.60), - const Color(0XFF222935).withOpacity(0.60), - const Color(0XFF222935).withOpacity(0.60), - const Color(0XFF222935).withOpacity(0.60), - - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - ], - ), - borderGradient: LinearGradient( - begin: Alignment.topCenter, - end: Alignment.bottomCenter, - colors: [ - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - const Color(0XFF222935).withOpacity(0.60), - - const Color(0XFF222935).withOpacity(0.60), - ], - ), - child: Padding( + Container( + decoration: const BoxDecoration( + image: DecorationImage( + image: AssetImage("assets/images/png/Ellipse 1496.png"), + fit: BoxFit.fill)), + ), + Padding( padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 50.h), child: Column( @@ -242,10 +209,10 @@ class _SelectBusinessCommunityState extends State { }) ], ), - )), - ), - ], - )); + )]), + + + ); } } diff --git a/lib/onboarding/Signup/View/Individual/FindCommunityPage.dart b/lib/onboarding/Signup/View/Individual/FindCommunityPage.dart new file mode 100644 index 0000000..b8581e7 --- /dev/null +++ b/lib/onboarding/Signup/View/Individual/FindCommunityPage.dart @@ -0,0 +1,44 @@ +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/Utils/Common/sized_box.dart'; +import 'package:regroup/Utils/texts.dart'; +import 'package:regroup/resources/routes/route_name.dart'; + +class FindCommunityPage extends StatelessWidget { + const FindCommunityPage({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + backgroundColor: Color(0xFF222935), + body: SingleChildScrollView( + child: Padding( + padding: EdgeInsets.symmetric( + vertical: 60.h, + ), + child: Column(children: [ + sizedBoxHeight(40.h), + Image.asset("assets/images/png/Organizing projects-pana 1.png"), + sizedBoxHeight(30.h), + Padding( + padding: EdgeInsets.symmetric(horizontal: 10.w), + child: Column(children: [ + text20400FCFCFC( + '''ReGroup helps organise individuals into groups, and groups within communities. For example, an individual is part of a local football club, while all the football clubs in the city form a wider football community. If you already know which communities you're interested in, you can search for them here.''', + textAlign: TextAlign.center), + sizedBoxHeight(20.h), + CommonBtn( + text: "Find communities", + onTap: () { + // individualcommunitystep4 + // Get.toNamed(RouteName.individualgroupstep3); + Get.toNamed(RouteName.individualcommunitystep4); + }), + ]), + ), + ])), + )); + } +} diff --git a/lib/onboarding/Signup/View/Individual/step1Selectprofile.dart b/lib/onboarding/Signup/View/Individual/step1Selectprofile.dart index 097b0e0..430ec5c 100644 --- a/lib/onboarding/Signup/View/Individual/step1Selectprofile.dart +++ b/lib/onboarding/Signup/View/Individual/step1Selectprofile.dart @@ -2,9 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_svg/flutter_svg.dart'; import 'package:get/get.dart'; -import 'package:glassmorphism/glassmorphism.dart'; import 'package:regroup/Utils/Common/CustomNextButton.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'; @@ -26,45 +24,14 @@ class _SelectIndividualProfileState extends State { backgroundColor: const Color.fromARGB(255, 18, 32, 47), body: Stack( children: [ - const Positioned(top: 70, left: -30, child: CommonBlurLeftSecond()), - const Positioned(top: 310, right: -30, child: CommonBlurRightSecond()), - const Positioned(top: 540, left: -30, child: CommonBlurLeftBlue()), - GlassmorphicContainer( - width: MediaQuery.of(context).size.width, - height: - // 500.h, - MediaQuery.of(context).size.height, - borderRadius: 2, - blur: 6, - alignment: Alignment.bottomLeft, - border: 2, - linearGradient: LinearGradient( - begin: Alignment.topCenter, - end: Alignment.bottomCenter, - colors: [ - const Color(0XFF222935).withOpacity(0.60), - const Color(0XFF222935).withOpacity(0.60), - const Color(0XFF222935).withOpacity(0.60), - const Color(0XFF222935).withOpacity(0.60), - - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - ], - ), - borderGradient: LinearGradient( - begin: Alignment.topCenter, - end: Alignment.bottomCenter, - colors: [ - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - const Color(0XFF222935).withOpacity(0.60), - - const Color(0XFF222935).withOpacity(0.60), - ], - ), - child: Padding( + Container( + decoration: const BoxDecoration( + image: DecorationImage( + image: AssetImage("assets/images/png/Ellipse 1496.png"), + fit: BoxFit.fill)), + ), + + Padding( padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 50.h), child: Column( @@ -181,7 +148,7 @@ class _SelectIndividualProfileState extends State { }) ], ), - )), + ) ], )); } diff --git a/lib/onboarding/Signup/View/Individual/step2Selectactivity.dart b/lib/onboarding/Signup/View/Individual/step2Selectactivity.dart index 97a11dd..5960bff 100644 --- a/lib/onboarding/Signup/View/Individual/step2Selectactivity.dart +++ b/lib/onboarding/Signup/View/Individual/step2Selectactivity.dart @@ -1,22 +1,19 @@ import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; -import 'package:flutter_svg/flutter_svg.dart'; import 'package:get/get.dart'; -import 'package:glassmorphism/glassmorphism.dart'; -import 'package:regroup/Common/CommonDropDown.dart'; +import 'package:regroup/Common/CommonButton.dart'; import 'package:regroup/Common/base_manager.dart'; -import 'package:regroup/Utils/Common/CommonDropdown.dart'; import 'package:regroup/Utils/Common/CustomNextButton.dart'; import 'package:regroup/Utils/Common/CustomTextformfield.dart'; -import 'package:regroup/Utils/Common/blureffect.dart'; import 'package:regroup/Utils/Common/sized_box.dart'; import 'package:regroup/Utils/dialogs.dart'; import 'package:regroup/Utils/texts.dart'; import 'package:regroup/onboarding/Signup/view_model/getmethod.dart'; import 'package:regroup/onboarding/Signup/view_model/postmethod.dart'; import 'package:regroup/resources/routes/route_name.dart'; -import 'package:remove_emoji_input_formatter/remove_emoji_input_formatter.dart'; + +int? _firstSelectedIndex; +bool _isFirstSelectionActive = false; class SelectIndividualActivity extends StatefulWidget { const SelectIndividualActivity({super.key}); @@ -45,16 +42,49 @@ class _SelectIndividualActivityState extends State { // }); // } - void _onContainerTap(int id) { + void _onContainerTap(int index) { setState(() { - if (_selectedIndices.contains(id)) { - _selectedIndices.remove(id); + if (_selectedIndices.contains(index)) { + _selectedIndices.remove(index); + if (_firstSelectedIndex == index) { + // If the first selected container is unselected, reset the active state + _firstSelectedIndex = null; + _isFirstSelectionActive = false; + } } else { - _selectedIndices.add(id); + if (_firstSelectedIndex == null) { + // The first item is being selected + _firstSelectedIndex = index; + _isFirstSelectionActive = true; + } + _selectedIndices.add(index); } }); } + Color _getGradientColor(int index) { + if (_selectedIndices.isEmpty) { + return Colors.transparent; + } else if (_firstSelectedIndex == index && _isFirstSelectionActive) { + // Apply Color(0XFFD90B2E) to the first selected item + return Color(0XFFD90B2E); + } else if (_selectedIndices.contains(index)) { + // Apply Color(0xFF009DAB) to all other selected items + return Color(0xFF009DAB); + } + return Colors.transparent; + } + + // void _onContainerTap(int id) { + // setState(() { + // if (_selectedIndices.contains(id)) { + // _selectedIndices.remove(id); + // } else { + // _selectedIndices.add(id); + // } + // }); + // } + // to give two different colors for selectedd two containers // Color _getGradientColor(int index) { // if (_selectedIndices.isEmpty) { @@ -72,12 +102,12 @@ class _SelectIndividualActivityState extends State { // return Colors.transparent; // } - Color _getGradientColor(int id) { - if (_selectedIndices.contains(id)) { - return const Color(0XFFD90B2E); // Selected color - } - return Colors.transparent; // Default color - } + // Color _getGradientColor(int id) { + // if (_selectedIndices.contains(id)) { + // return const Color(0XFFD90B2E); // Selected color + // } + // return Colors.transparent; // Default color + // } Uploadata() async { utils.loader(); @@ -93,7 +123,8 @@ class _SelectIndividualActivityState extends State { if (data.status == ResponseStatus.SUCCESS) { Get.back(); print("Activities selected"); - Get.toNamed(RouteName.individualgroupstep3); + // Get.toNamed(RouteName.individualgroupstep3); + Get.toNamed(RouteName.findcommunitypage); return utils.showToast(data.message); } else { @@ -106,310 +137,291 @@ class _SelectIndividualActivityState extends State { @override Widget build(BuildContext context) { return GestureDetector( - onTap: () => FocusManager.instance.primaryFocus?.unfocus(), - child: Scaffold( - backgroundColor: const Color.fromARGB(255, 18, 32, 47), - bottomNavigationBar: Padding( - padding: const EdgeInsets.only(bottom: 10, left: 16, right: 16), - child: CustomButton( - text: "Continue", - onPressed: () { - if (_selectedIndices.isEmpty && - otheractivitycontroller.text.isEmpty) { - utils.showToast('Please select activity'); - } else { - print(_selectedIndices.toString()); - // String selectedIndicesString = - // _selectedIndices.join(','); - // print( - // 'Selected Indices: [$selectedIndicesString]'); - Uploadata(); - } - // Get.toNamed( - // RouteName.individualgroupstep3); - }), - ), - body: SafeArea( - child: FutureBuilder( - future: Getonboard().getIndividualactivity(), - builder: (ctx, snapshot) { - if (snapshot.data == null) { - return const Column( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.center, - children: [Center(child: CircularProgressIndicator())], - ); - } - if (snapshot.connectionState == ConnectionState.done) { - if (snapshot.hasError) { - return Center( - child: Text( - '${snapshot.error} occured', - style: TextStyle(fontSize: 18.spMin), - ), + onTap: () => FocusManager.instance.primaryFocus?.unfocus(), + child: Scaffold( + backgroundColor: const Color.fromARGB(255, 18, 32, 47), + bottomNavigationBar: Padding( + padding: const EdgeInsets.only(bottom: 10, left: 16, right: 16), + child: CustomButton( + text: "Continue", + onPressed: () { + if (_selectedIndices.isEmpty && + otheractivitycontroller.text.isEmpty) { + utils.showToast('Please select activity'); + } else { + print(_selectedIndices.toString()); + // String selectedIndicesString = + // _selectedIndices.join(','); + // print( + // 'Selected Indices: [$selectedIndicesString]'); + Uploadata(); + } + // Get.toNamed( + // RouteName.individualgroupstep3); + }), + ), + body: SafeArea( + child: FutureBuilder( + future: Getonboard().getIndividualactivity(), + builder: (ctx, snapshot) { + if (snapshot.data == null) { + return const Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + children: [Center(child: CircularProgressIndicator())], ); } - } + if (snapshot.connectionState == ConnectionState.done) { + if (snapshot.hasError) { + return Center( + child: Text( + '${snapshot.error} occured', + style: TextStyle(fontSize: 18.spMin), + ), + ); + } + } - return Stack( - children: [ - Container( - decoration: const BoxDecoration( - image: DecorationImage( - image: AssetImage( - "assets/images/png/Ellipse 1496.png"), - fit: BoxFit.fill)), - ), - Padding( - padding: - EdgeInsets.symmetric(horizontal: 16.w, vertical: 0.h), - child: SingleChildScrollView( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Align( - alignment: Alignment.topRight, - child: GestureDetector( - onTap: () { - Get.toNamed(RouteName.communitycommitscreen); - }, - child: Text( - 'Skip', - style: TextStyle( - color: Colors.white, - fontSize: 16.sp, - fontFamily: 'Helvetica', - fontWeight: FontWeight.w400, - decoration: TextDecoration.underline, - decorationColor: Colors.white), + return Stack( + children: [ + Container( + decoration: const BoxDecoration( + image: DecorationImage( + image: AssetImage( + "assets/images/png/Ellipse 1496.png"), + fit: BoxFit.fill)), + ), + Padding( + padding: + EdgeInsets.symmetric(horizontal: 16.w, vertical: 0.h), + child: SingleChildScrollView( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Align( + alignment: Alignment.topRight, + child: GestureDetector( + onTap: () { + Get.toNamed(RouteName.communitycommitscreen); + }, + child: Text( + 'Skip', + style: TextStyle( + color: Colors.white, + fontSize: 16.sp, + fontFamily: 'Helvetica', + fontWeight: FontWeight.w400, + decoration: TextDecoration.underline, + decorationColor: Colors.white), + ), ), ), - ), - sizedBoxHeight(30.h), - Align( - alignment: Alignment.center, - child: text16400white('Step 1 of 3')), - sizedBoxHeight(20.h), - Container( - width: double.infinity, - height: 25.h, - decoration: ShapeDecoration( - shape: RoundedRectangleBorder( - side: const BorderSide( - width: 1, color: Color(0xFF434A53)), - borderRadius: BorderRadius.circular(30), + sizedBoxHeight(30.h), + Align( + alignment: Alignment.center, + child: text16400white('Step 1 of 3')), + sizedBoxHeight(20.h), + Container( + width: double.infinity, + height: 25.h, + decoration: ShapeDecoration( + shape: RoundedRectangleBorder( + side: const BorderSide( + width: 1, color: Color(0xFF434A53)), + borderRadius: BorderRadius.circular(30), + ), ), - ), - child: Padding( - padding: EdgeInsets.symmetric( - horizontal: 8.w, vertical: 2.h), - child: Row( - children: [ - Container( - width: 120.w, - height: 15.h, - decoration: ShapeDecoration( - gradient: const LinearGradient( - begin: Alignment(0.98, -0.21), - end: Alignment(-0.98, 0.21), - colors: [ - Color(0xA5D90B2E), - Color(0x42D90B2E) - ], - ), - shape: RoundedRectangleBorder( - borderRadius: - BorderRadius.circular(30), - ), - ), - child: Row( - mainAxisAlignment: - MainAxisAlignment.end, - children: [ - Container( - width: 15, - height: 15, - decoration: ShapeDecoration( - gradient: const LinearGradient( - begin: Alignment(0.98, -0.21), - end: Alignment(-0.98, 0.21), - colors: [ - Color(0xFFD90B2E), - Color(0x60D90B2E) - ], - ), - shape: RoundedRectangleBorder( - borderRadius: - BorderRadius.circular(30), - ), - ), - ) - ], - )) - ], - ), - ), - ), - sizedBoxHeight(40.h), - indiactivityobj!.data == null || - indiactivityobj!.data!.isEmpty - ? _buildNoDataBody(context) - : Column( - crossAxisAlignment: CrossAxisAlignment.start, + child: Padding( + padding: EdgeInsets.symmetric( + horizontal: 8.w, vertical: 2.h), + child: Row( children: [ - Center( - child: _selectedIndices.isEmpty - ? text20400white( - 'What is your main activity ?') - : text20400white( - 'What else do you do?')), - sizedBoxHeight(10.w), - Center( - child: Container( - width: 154.w, - decoration: const ShapeDecoration( + Container( + width: 100.w, + height: 15.h, + decoration: ShapeDecoration( + gradient: const LinearGradient( + begin: Alignment(0.98, -0.21), + end: Alignment(-0.98, 0.21), + colors: [ + Color(0xA5D90B2E), + Color(0x42D90B2E) + ], + ), shape: RoundedRectangleBorder( - side: BorderSide( - width: 1, - strokeAlign: - BorderSide.strokeAlignCenter, - color: Color(0xFF858585), - ), + borderRadius: + BorderRadius.circular(30), ), ), - ), - ), - sizedBoxHeight(30.h), - GridView.builder( - physics: const ScrollPhysics(), - shrinkWrap: true, - gridDelegate: - SliverGridDelegateWithFixedCrossAxisCount( - crossAxisCount: - 3, // Number of items in each row - crossAxisSpacing: 12 - .w, // Horizontal spacing between items - mainAxisSpacing: 12 - .h, // Vertical spacing between items - ), - itemCount: indiactivityobj!.data!.length, - itemBuilder: (context, index) { - return ActivityContainer( - index: - indiactivityobj!.data![index].id!, - titleString: indiactivityobj! - .data![index].name!, - image: indiactivityobj! - .data![index].image, - // 'assets/images/svg/individualact7.svg', - isSelected: _selectedIndices.contains( - indiactivityobj! - .data![index].id!), - gradientColor: _getGradientColor( - indiactivityobj! - .data![index].id!), - onTap: _onContainerTap, - ); - }, - ), - - sizedBoxHeight(30.h), - text20400FCFCFC("Add other activity"), - sizedBoxHeight(25.h), - CustomTextFormField( - textEditingController: - otheractivitycontroller, - texttype: TextInputType.text, - hintText: "Enter other activity", - // leadingIcon: - // // const Icon(Icons.mail_outline), - // Image.asset( - // width: 22.w, - // height: 17.h, - // 'assets/images/png/user.png', - // ), - // validatorText: "Enter your full name", - validator: (value) { - if (value!.isEmpty) { - return 'Enter your full name '; - } - return null; - }, - inputFormatters: [ - // LengthLimitingTextInputFormatter(20), - RemoveEmojiInputFormatter(), - FilteringTextInputFormatter.allow( - RegExp('[a-zA-Z ]')) - ], - ), - // CustomDropDownRadio( - // header: "", - // title: "", - // listData: [ - // "American football", - // "Archery", - // "Athletics", - // "Baseball", - // "Basketball", - // "Boxing", - // "Canoeing", - // "Clay pigeon shooting", - // "Climbing", - // "Combat sports", - // "Cricket", - // "Dodgeball", - // "Equestrian", - // "Fencing", - // "Gaelic football", - // "Golf", - // "Gymnastics", - // "Handball", - // "Hockey", - // "Lacrosse", - // "Modern biathlon and pentathlon", - // "Netball", - // "Orienteering", - // "Pool and snooker", - // "Powerlifting", - // "Rifle", - // "Rugby league", - // "Rugby union", - // "Sailing", - // "Snowsports", - // "Squash", - // "Surfing", - // "Swimming", - // "Softball", - // "Table tennis", - // "Tennis", - // "Touch rugby", - // "Trampoline", - // "Triathlon", - // "Ultimate frisbee", - // "Volleyball", - // "Water polo", - // "Windsurfing" - // ], - // onItemSelected: (p0) {}, - // leadingImage: SizedBox()), - // // Spacer(flex: 1), - - sizedBoxHeight(35.h), + child: Row( + mainAxisAlignment: + MainAxisAlignment.end, + children: [ + Container( + width: 15, + height: 15, + decoration: ShapeDecoration( + gradient: const LinearGradient( + begin: Alignment(0.98, -0.21), + end: Alignment(-0.98, 0.21), + colors: [ + Color(0xFFD90B2E), + Color(0x60D90B2E) + ], + ), + shape: RoundedRectangleBorder( + borderRadius: + BorderRadius.circular(30), + ), + ), + ) + ], + )) ], - ) - ], + ), + ), + ), + sizedBoxHeight(40.h), + indiactivityobj!.data == null || + indiactivityobj!.data!.isEmpty + ? _buildNoDataBody(context) + : Column( + crossAxisAlignment: + CrossAxisAlignment.center, + children: [ + text20400white( + 'What are your interests?'), + // sizedBoxHeight(5.w), + + _isFirstSelectionActive + ? text13400A7A7A7( + 'Select your secondary interests') + : text13400A7A7A7( + 'Select your primary interest'), + + // Container( + // width: 154.w, + // decoration: const ShapeDecoration( + // shape: RoundedRectangleBorder( + // side: BorderSide( + // width: 1, + // strokeAlign: + // BorderSide.strokeAlignCenter, + // color: Color(0xFF858585), + // ), + // ), + // ), + // ), + sizedBoxHeight(30.h), + GridView.builder( + physics: const ScrollPhysics(), + shrinkWrap: true, + gridDelegate: + SliverGridDelegateWithFixedCrossAxisCount( + crossAxisCount: + 3, // Number of items in each row + crossAxisSpacing: 12 + .w, // Horizontal spacing between items + mainAxisSpacing: 12 + .h, // Vertical spacing between items + ), + itemCount: + indiactivityobj!.data!.length, + itemBuilder: (context, index) { + return ActivityContainer( + index: indiactivityobj! + .data![index].id!, + titleString: indiactivityobj! + .data![index].name!, + image: indiactivityobj! + .data![index].image, + // 'assets/images/svg/individualact7.svg', + isSelected: _selectedIndices + .contains(indiactivityobj! + .data![index].id!), + gradientColor: _getGradientColor( + indiactivityobj! + .data![index].id!), + onTap: _onContainerTap, + ); + }, + ), + + sizedBoxHeight(30.h), + // text20400FCFCFC("Add other activity"), + // sizedBoxHeight(25.h), + // CustomTextFormField( + // textEditingController: + // otheractivitycontroller, + // texttype: TextInputType.text, + // hintText: "Enter other activity", + // // leadingIcon: + // // // const Icon(Icons.mail_outline), + // // Image.asset( + // // width: 22.w, + // // height: 17.h, + // // 'assets/images/png/user.png', + // // ), + // // validatorText: "Enter your full name", + // validator: (value) { + // if (value!.isEmpty) { + // return 'Enter your full name '; + // } + // return null; + // }, + // inputFormatters: [ + // // LengthLimitingTextInputFormatter(20), + // RemoveEmojiInputFormatter(), + // FilteringTextInputFormatter.allow( + // RegExp('[a-zA-Z ]')) + // ], + // ), + + sizedBoxHeight(35.h), + ], + ) + ], + ), ), ), - ), - ], - ); - }, + ], + ); + }, + ), ), - ), - - // - ), - ); + floatingActionButton: Stack( + alignment: Alignment.center, + clipBehavior: Clip.none, // Ensure the Positioned widget is visible + children: [ + FloatingActionButton( + onPressed: () { + interestdialogwidget(); + }, + backgroundColor: const Color(0xFFD90B2E), + autofocus: true, + shape: const CircleBorder(), + child: Icon( + Icons.add, + color: Colors.white, + size: 27.sp, + ), + ), + Positioned( + right: 60.w, + child: Container( + width: 212.w, + height: 35.h, + decoration: BoxDecoration( + color: Color(0xFF363636), + borderRadius: BorderRadius.circular(20), + border: + Border.all(color: Color(0xFFD90B2E), width: 1.w)), + child: Center( + child: text16400white("Can’t find your interest"))), + ) + ], + ), + )); } Widget _buildNoDataBody(context) { @@ -420,6 +432,108 @@ class _SelectIndividualActivityState extends State { } } +interestdialogwidget() { + Get.dialog(Dialog( + // backgroundColor: Colors.transparent, + child: Column( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(10.r), + color: const Color(0xFF222935)), + child: Padding( + padding: EdgeInsets.only( + right: 16.w, left: 16.w, top: 20.h, bottom: 40.h), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + Spacer(), + Image.asset( + "assets/images/png/x-circle.png", + height: 28.h, + width: 28.w, + ) + ], + ), + text16w700_FCFCFC("Suggest interest"), + sizedBoxHeight(16.h), + Center( + child: CustomTextFormField( + hintText: "Please type your interest", + )), + sizedBoxHeight(10.h), + text10w400_FCFCFC_blur("We will surely make this happen"), + sizedBoxHeight(20.h), + Align( + alignment: Alignment.center, + child: SizedBox( + width: 177.w, + child: CommonBtn( + text: "Suggest", + onTap: () { + Get.back(); + thankdialogwidget(); + })), + ) + ], + ), + ), + ), + ], + ), + )); +} + +thankdialogwidget() { + Get.dialog(Dialog( + // backgroundColor: Colors.transparent, + child: Column( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(10.r), + color: const Color(0xFF222935)), + child: Padding( + padding: EdgeInsets.only( + right: 16.w, left: 16.w, top: 20.h, bottom: 40.h), + child: Column( + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Row( + children: [ + Spacer(), + Image.asset( + "assets/images/png/x-circle.png", + height: 28.h, + width: 28.w, + ) + ], + ), + Image.asset( + "assets/images/png/correct 1.png", + height: 72.h, + width: 72.w, + ), + sizedBoxHeight(20.h), + text16w700_FCFCFC( + "Thank You! \n for adding one more to the club", + textAlign: TextAlign.center), + sizedBoxHeight(16.h), + ], + ), + ), + ), + ], + ), + )); +} + class ActivityContainer extends StatelessWidget { final int index; final String titleString; @@ -449,19 +563,32 @@ class ActivityContainer extends StatelessWidget { begin: const Alignment(0.98, -0.21), end: const Alignment(-0.98, 0.21), colors: isSelected - ? [ - gradientColor.withOpacity(0.80), - gradientColor.withOpacity(0.77), - gradientColor.withOpacity(0.66), - gradientColor.withOpacity(0.18), - ] + ? _firstSelectedIndex == index && + _isFirstSelectionActive == true + ? [ + gradientColor.withOpacity(0.80), + gradientColor.withOpacity(0.77), + Color(0xFF009DAB).withOpacity(0.66), + Color(0xFF009DAB).withOpacity(0.18), + ] + : [ + Colors.white.withOpacity(0.06), + Colors.white.withOpacity(0.08), + ] : [ Colors.white.withOpacity(0.06), Colors.white.withOpacity(0.08), ], ), shape: RoundedRectangleBorder( - side: const BorderSide(width: 1, color: Color(0xFF434A53)), + side: isSelected + ? _firstSelectedIndex == index && + _isFirstSelectionActive == true + ? BorderSide(width: 1.w, color: Color(0xFF434A53)) + : BorderSide(width: 3.w, color: gradientColor) + : BorderSide(width: 3.w, color: gradientColor), + + borderRadius: BorderRadius.circular(10), ), ), diff --git a/lib/onboarding/Signup/View/Individual/step3Selectyourgroup.dart b/lib/onboarding/Signup/View/Individual/step3Selectyourgroup.dart index 447b062..76f1299 100644 --- a/lib/onboarding/Signup/View/Individual/step3Selectyourgroup.dart +++ b/lib/onboarding/Signup/View/Individual/step3Selectyourgroup.dart @@ -2,13 +2,14 @@ import 'dart:async'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; +import 'package:flutter/widgets.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; -import 'package:glassmorphism/glassmorphism.dart'; +import 'package:regroup/Common/CommonButton.dart'; import 'package:regroup/Common/base_manager.dart'; import 'package:regroup/Utils/Common/CustomNextButton.dart'; import 'package:regroup/Utils/Common/CustomTextformfield.dart'; -import 'package:regroup/Utils/Common/blureffect.dart'; + import 'package:regroup/Utils/Common/sized_box.dart'; import 'package:regroup/Utils/dialogs.dart'; import 'package:regroup/Utils/texts.dart'; @@ -67,7 +68,8 @@ class _SelectIndividualGroupState extends State { if (data.status == ResponseStatus.SUCCESS) { Get.back(); print("groups selected"); - Get.toNamed(RouteName.individualcommunitystep4); + // Get.toNamed(RouteName.individualcommunitystep4); + Get.toNamed(RouteName.communitycommitscreen); return utils.showToast(data.message); } else { @@ -82,7 +84,7 @@ class _SelectIndividualGroupState extends State { return GestureDetector( onTap: () => FocusManager.instance.primaryFocus?.unfocus(), child: Scaffold( - backgroundColor: Color.fromARGB(255, 18, 32, 47), + backgroundColor: const Color.fromARGB(255, 18, 32, 47), body: Stack( children: [ Container( @@ -117,14 +119,15 @@ class _SelectIndividualGroupState extends State { sizedBoxHeight(30.h), Align( alignment: Alignment.center, - child: text16400white('Step 2 of 3')), + child: text16400white('Step 3 of 3')), sizedBoxHeight(20.h), Container( width: double.infinity, height: 25.h, decoration: ShapeDecoration( shape: RoundedRectangleBorder( - side: BorderSide(width: 1, color: Color(0xFF434A53)), + side: const BorderSide( + width: 1, color: Color(0xFF434A53)), borderRadius: BorderRadius.circular(30), ), ), @@ -133,45 +136,47 @@ class _SelectIndividualGroupState extends State { horizontal: 8.w, vertical: 2.h), child: Row( children: [ - Container( - width: 216.w, - height: 15.h, - decoration: ShapeDecoration( - gradient: LinearGradient( - begin: Alignment(0.98, -0.21), - end: Alignment(-0.98, 0.21), - colors: [ - Color(0xA5D90B2E), - Color(0x42D90B2E) + Expanded( + child: Container( + // width: 216.w, + height: 15.h, + decoration: ShapeDecoration( + gradient: const LinearGradient( + begin: Alignment(0.98, -0.21), + end: Alignment(-0.98, 0.21), + colors: [ + Color(0xA5D90B2E), + Color(0x42D90B2E) + ], + ), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(30), + ), + ), + child: Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + Container( + width: 15, + height: 15, + decoration: ShapeDecoration( + gradient: const LinearGradient( + begin: Alignment(0.98, -0.21), + end: Alignment(-0.98, 0.21), + colors: [ + Color(0xFFD90B2E), + Color(0x60D90B2E) + ], + ), + shape: RoundedRectangleBorder( + borderRadius: + BorderRadius.circular(30), + ), + ), + ) ], - ), - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(30), - ), - ), - child: Row( - mainAxisAlignment: MainAxisAlignment.end, - children: [ - Container( - width: 15, - height: 15, - decoration: ShapeDecoration( - gradient: LinearGradient( - begin: Alignment(0.98, -0.21), - end: Alignment(-0.98, 0.21), - colors: [ - Color(0xFFD90B2E), - Color(0x60D90B2E) - ], - ), - shape: RoundedRectangleBorder( - borderRadius: - BorderRadius.circular(30), - ), - ), - ) - ], - )) + )), + ) ], ), ), @@ -183,14 +188,19 @@ class _SelectIndividualGroupState extends State { children: [ text20400white('Find your group'), sizedBoxWidth(5.w), - Image.asset('assets/images/png/informationicon.png') + InkWell( + onTap: () { + groupBottomsheet(); + }, + child: Image.asset( + 'assets/images/png/informationicon.png')) ], )), sizedBoxHeight(10.w), Center( child: Container( width: 108.w, - decoration: ShapeDecoration( + decoration: const ShapeDecoration( shape: RoundedRectangleBorder( side: BorderSide( width: 1, @@ -215,7 +225,7 @@ class _SelectIndividualGroupState extends State { // ), Padding( padding: EdgeInsets.symmetric(horizontal: 16.w), - child: Icon( + child: const Icon( Icons.search, size: 35, color: Colors.white, @@ -241,13 +251,14 @@ class _SelectIndividualGroupState extends State { if (snapshot.connectionState == ConnectionState.waiting) { // Display shimmer effect while waiting for data - return Center(child: CircularProgressIndicator()); + return const Center( + child: CircularProgressIndicator()); } else if (snapshot.hasError) { // Handle error state return Center( child: Text( '${snapshot.error} occurred', - style: TextStyle(fontSize: 18), + style: const TextStyle(fontSize: 18), ), ); } else { @@ -256,9 +267,9 @@ class _SelectIndividualGroupState extends State { ? _buildNoDataBody(context) : Expanded( child: GridView.builder( - physics: ScrollPhysics(), + physics: const ScrollPhysics(), gridDelegate: - SliverGridDelegateWithFixedCrossAxisCount( + const SliverGridDelegateWithFixedCrossAxisCount( crossAxisCount: 2, crossAxisSpacing: 12.0, mainAxisSpacing: 12.0, @@ -328,6 +339,53 @@ class _SelectIndividualGroupState extends State { ), ); } + + void groupBottomsheet() { + Get.bottomSheet( + isScrollControlled: true, + Container( + // height: 700.h, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(14.r), + color: const Color(0xFF222935)), + child: Padding( + padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 20.h), + child: Column(mainAxisSize: MainAxisSize.min, children: [ + // sizedBoxHeight(20.h), + Row( + children: [ + Spacer(), + Image.asset( + "assets/images/png/x-circle.png", + height: 28.h, + width: 28.w, + ), + ], + ), + Image.asset( + "assets/images/png/Group 1000004385.png", + height: 185.h, + width: 185.w, + ), + + sizedBoxHeight(20.h), + text16w400_FCFCFC( + '''Use this screen to find specific groups within your area. Groups span any club, society or hobbyist group e.g. sports clubs, social clubs, service clubs, musical groups or voluntary societies. If you are still exploring your options, you can skip this step. You can always join or create new groups later.''', + textAlign: TextAlign.center), + sizedBoxHeight(20.h), + + SizedBox( + width: 239.w, + child: CommonBtn( + text: "Understood", + onTap: () { + Get.back(); + }, + )), + + // sizedBoxHeight(40.h) + ])))); + } } class GroupSelect extends StatelessWidget { @@ -348,13 +406,13 @@ class GroupSelect extends StatelessWidget { @override Widget build(BuildContext context) { - return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [ + return Column(crossAxisAlignment: CrossAxisAlignment.center, children: [ Container( - width: 169, - height: 74, + width: 72.w, + height: 72.h, decoration: ShapeDecoration( image: image == null || image!.isEmpty - ? DecorationImage( + ? const DecorationImage( image: AssetImage("assets/images/png/groupindividual3.png"), fit: BoxFit.fill, ) @@ -362,26 +420,42 @@ class GroupSelect extends StatelessWidget { image: NetworkImage(image!), fit: BoxFit.fill, ), - shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(5)), + shape: + RoundedRectangleBorder(borderRadius: BorderRadius.circular(100)), ), ), - SizedBox(height: 15.0), + const SizedBox(height: 15.0), Text( titleString, - style: TextStyle( + style: const TextStyle( color: Colors.white, fontSize: 12.0, overflow: TextOverflow.ellipsis), ), - SizedBox(height: 15.0), + const SizedBox(height: 15.0), GestureDetector( onTap: () => onTap(index), child: Container( - width: 169, - height: 23, + width: 169.w, + height: 23.h, decoration: ShapeDecoration( + gradient: isSelected + ? LinearGradient(colors: [ + Color(0xFFD90B2E), + Color(0xFFD90B2E), + ]) + : LinearGradient( + begin: Alignment(0.98, -0.21), + end: Alignment(-0.98, 0.21), + colors: [ + Colors.white.withOpacity(0.04), + Colors.white.withOpacity(0.05) + ], + ), shape: RoundedRectangleBorder( - side: BorderSide(width: 1, color: Color(0xFFFF002B)), + side: isSelected + ? BorderSide(width: 1.w, color: Colors.transparent) + : BorderSide(width: 1.w, color: Color(0xFF434A53)), borderRadius: BorderRadius.circular(30), ), ), @@ -389,10 +463,8 @@ class GroupSelect extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.center, children: [ isSelected - ? Text('Regrouping', - style: TextStyle(color: Colors.white, fontSize: 10.0)) - : Text('Join', - style: TextStyle(color: Colors.white, fontSize: 10.0)) + ? text10400white("Leave group") + : text10400white("Join") ], ), ), diff --git a/lib/onboarding/Signup/View/Individual/step4Selectyourcommunity.dart b/lib/onboarding/Signup/View/Individual/step4Selectyourcommunity.dart index 78b3bd9..050cdd2 100644 --- a/lib/onboarding/Signup/View/Individual/step4Selectyourcommunity.dart +++ b/lib/onboarding/Signup/View/Individual/step4Selectyourcommunity.dart @@ -2,13 +2,13 @@ import 'dart:async'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; +import 'package:flutter/widgets.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; -import 'package:glassmorphism/glassmorphism.dart'; +import 'package:regroup/Common/CommonButton.dart'; import 'package:regroup/Common/base_manager.dart'; import 'package:regroup/Utils/Common/CustomNextButton.dart'; import 'package:regroup/Utils/Common/CustomTextformfield.dart'; -import 'package:regroup/Utils/Common/blureffect.dart'; import 'package:regroup/Utils/Common/sized_box.dart'; import 'package:regroup/Utils/dialogs.dart'; import 'package:regroup/Utils/texts.dart'; @@ -68,7 +68,9 @@ class _SelectIndividualCommunityState extends State { if (data.status == ResponseStatus.SUCCESS) { // Get.back(); print("groups selected"); - Get.toNamed(RouteName.communitycommitscreen); + // Get.toNamed(RouteName.communitycommitscreen); + Get.toNamed(RouteName.individualgroupstep3); + return utils.showToast(data.message); } else { @@ -118,14 +120,15 @@ class _SelectIndividualCommunityState extends State { sizedBoxHeight(30.h), Align( alignment: Alignment.center, - child: text16400white('Step 3 of 3')), + child: text16400white('Step 2 of 3')), sizedBoxHeight(20.h), Container( width: double.infinity, height: 25.h, decoration: ShapeDecoration( shape: RoundedRectangleBorder( - side: const BorderSide(width: 1, color: Color(0xFF434A53)), + side: const BorderSide( + width: 1, color: Color(0xFF434A53)), borderRadius: BorderRadius.circular(30), ), ), @@ -134,46 +137,45 @@ class _SelectIndividualCommunityState extends State { horizontal: 8.w, vertical: 2.h), child: Row( children: [ - Expanded( - child: Container( - // width: 216.w, - height: 15.h, - decoration: ShapeDecoration( - gradient: const LinearGradient( - begin: Alignment(0.98, -0.21), - end: Alignment(-0.98, 0.21), - colors: [ - Color(0xA5D90B2E), - Color(0x42D90B2E) - ], + Container( + width: 170.w, + height: 15.h, + decoration: ShapeDecoration( + gradient: const LinearGradient( + begin: Alignment(0.98, -0.21), + end: Alignment(-0.98, 0.21), + colors: [ + Color(0xA5D90B2E), + Color(0x42D90B2E) + ], + ), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(30), + ), + ), + child: Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + Container( + width: 15, + height: 15, + decoration: ShapeDecoration( + gradient: const LinearGradient( + begin: Alignment(0.98, -0.21), + end: Alignment(-0.98, 0.21), + colors: [ + Color(0xFFD90B2E), + Color(0x60D90B2E) + ], + ), + shape: RoundedRectangleBorder( + borderRadius: + BorderRadius.circular(30), + ), ), - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(30), - ), - ), - child: Row( - mainAxisAlignment: MainAxisAlignment.end, - children: [ - Container( - width: 15, - height: 15, - decoration: ShapeDecoration( - gradient: const LinearGradient( - begin: Alignment(0.98, -0.21), - end: Alignment(-0.98, 0.21), - colors: [ - Color(0xFFD90B2E), - Color(0x60D90B2E) - ], - ), - shape: RoundedRectangleBorder( - borderRadius: - BorderRadius.circular(30), - ), - ), - ) - ], - ))) + ) + ], + )) ], ), ), @@ -185,8 +187,13 @@ class _SelectIndividualCommunityState extends State { children: [ text20400white('Find your community'), sizedBoxWidth(5.w), - Image.asset( - 'assets/images/png/informationicon.png', + InkWell( + onTap: () { + communityBottomsheet(); + }, + child: Image.asset( + 'assets/images/png/informationicon.png', + ), ) ], )), @@ -244,7 +251,8 @@ class _SelectIndividualCommunityState extends State { if (snapshot.connectionState == ConnectionState.waiting) { // Display shimmer effect while waiting for data - return const Center(child: CircularProgressIndicator()); + return const Center( + child: CircularProgressIndicator()); } else if (snapshot.hasError) { // Handle error state return Center( @@ -333,6 +341,56 @@ class _SelectIndividualCommunityState extends State { ), ); } + + void communityBottomsheet() { + Get.bottomSheet( + isScrollControlled: true, + Container( + // height: 700.h, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(14.r), + color: const Color(0xFF222935)), + child: Padding( + padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 20.h), + child: Column(mainAxisSize: MainAxisSize.min, children: [ + // sizedBoxHeight(20.h), + Row( + children: [ + Spacer(), + Image.asset( + "assets/images/png/x-circle.png", + height: 28.h, + width: 28.w, + ), + ], + ), + Image.asset( + "assets/images/png/Connected world-amico 1.png", + height: 185.h, + width: 185.w, + ), + + sizedBoxHeight(20.h), + text16w400_FCFCFC( + '''Use this screen to find interesting communities near you. Communities are +a collection of groups, individuals and businesses that share common interests. e.g. 'London football clubs' or 'Cambridge rowing clubs'. If you aren't sure of which communities you'd like to be a part of or already know the specific club you'd like to join, you can skip this step. Don't worry, you can always join new communities later.''', + textAlign: TextAlign.center), + sizedBoxHeight(20.h), + + SizedBox( + width: 239.w, + child: CommonBtn( + text: "Understood", + onTap: () { + Get.back(); + }, + )), + + // sizedBoxHeight(40.h) + ])))); + } + + } class CommunitySelect extends StatelessWidget { @@ -355,8 +413,8 @@ class CommunitySelect extends StatelessWidget { Widget build(BuildContext context) { return Column(crossAxisAlignment: CrossAxisAlignment.center, children: [ Container( - width: 73.w, - height: 73.h, + width: 170.w, + height: 74.h, decoration: ShapeDecoration( image: image == null || image!.isEmpty ? const DecorationImage( @@ -368,7 +426,7 @@ class CommunitySelect extends StatelessWidget { fit: BoxFit.fill, ), shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(100), + borderRadius: BorderRadius.circular(5.r), ), ), ), @@ -384,11 +442,26 @@ class CommunitySelect extends StatelessWidget { GestureDetector( onTap: () => onTap(index), child: Container( - width: 169, - height: 23, + width: 169.w, + height: 23.h, decoration: ShapeDecoration( + gradient: isSelected + ? LinearGradient(colors: [ + Color(0xFFD90B2E), + Color(0xFFD90B2E), + ]) + : LinearGradient( + begin: Alignment(0.98, -0.21), + end: Alignment(-0.98, 0.21), + colors: [ + Colors.white.withOpacity(0.04), + Colors.white.withOpacity(0.05) + ], + ), shape: RoundedRectangleBorder( - side: const BorderSide(width: 1, color: Color(0xFFFF002B)), + side: isSelected + ? BorderSide(width: 1.w, color: Colors.transparent) + : BorderSide(width: 1.w, color: Color(0xFF434A53)), borderRadius: BorderRadius.circular(30), ), ), @@ -396,10 +469,8 @@ class CommunitySelect extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.center, children: [ isSelected - ? const Text('Regrouping', - style: TextStyle(color: Colors.white, fontSize: 10.0)) - : const Text('Join', - style: TextStyle(color: Colors.white, fontSize: 10.0)) + ? text10400white("Leave community") + : text10400white("Join") ], ), ), diff --git a/lib/onboarding/Signup/View/Individual/tellusindividual.dart b/lib/onboarding/Signup/View/Individual/tellusindividual.dart index 32364f3..01d5af2 100644 --- a/lib/onboarding/Signup/View/Individual/tellusindividual.dart +++ b/lib/onboarding/Signup/View/Individual/tellusindividual.dart @@ -154,7 +154,7 @@ class _TellusaboutIndividualState extends State { Get.toNamed(RouteName.individualactivitystep2); } else { Get.back(); - utils.showToast(data.message); + utils.showToast(data.message); } } @@ -162,14 +162,11 @@ class _TellusaboutIndividualState extends State { Widget build(BuildContext context) { return WillPopScope( onWillPop: () async { - SystemNavigator.pop(); + SystemNavigator.pop(); // Navigator.pop(context); - return true; - }, - child: GestureDetector( onTap: () => FocusManager.instance.primaryFocus?.unfocus(), child: Scaffold( @@ -179,7 +176,8 @@ class _TellusaboutIndividualState extends State { Container( decoration: const BoxDecoration( image: DecorationImage( - image: AssetImage("assets/images/png/Ellipse 1496.png"), + image: + AssetImage("assets/images/png/Ellipse 1496.png"), fit: BoxFit.fill)), ), ListView(physics: const ScrollPhysics(), children: [ @@ -319,7 +317,8 @@ class _TellusaboutIndividualState extends State { inputFormatters: [ // LengthLimitingTextInputFormatter(20), RemoveEmojiInputFormatter(), - FilteringTextInputFormatter.allow(RegExp('[a-zA-Z ]')) + FilteringTextInputFormatter.allow( + RegExp('[a-zA-Z ]')) ], ), sizedBoxHeight(10.h), @@ -346,7 +345,8 @@ class _TellusaboutIndividualState extends State { inputFormatters: [ // LengthLimitingTextInputFormatter(20), RemoveEmojiInputFormatter(), - FilteringTextInputFormatter.allow(RegExp('[a-zA-Z ]')) + FilteringTextInputFormatter.allow( + RegExp('[a-zA-ZS0-9 ]')), ], ), sizedBoxHeight(10.h), @@ -416,7 +416,8 @@ class _TellusaboutIndividualState extends State { inputFormatters: [ // LengthLimitingTextInputFormatter(20), RemoveEmojiInputFormatter(), - FilteringTextInputFormatter.allow(RegExp('[a-zA-Z ]')) + FilteringTextInputFormatter.allow( + RegExp('[a-zA-Z ]')) ], ), sizedBoxHeight(20.h), @@ -435,7 +436,7 @@ class _TellusaboutIndividualState extends State { } // if (_selectedgendertype.isNotEmpty) { // Get.toNamed(RouteName.individualprofilestep1); - + // // Get.to(() => BusinessPage()); // } else { // // Handle case where no selection is made diff --git a/lib/onboarding/Signup/View/communitycommitment.dart b/lib/onboarding/Signup/View/communitycommitment.dart index 7c441c5..f159ae1 100644 --- a/lib/onboarding/Signup/View/communitycommitment.dart +++ b/lib/onboarding/Signup/View/communitycommitment.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; +import 'package:flutter/widgets.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; -import 'package:glassmorphism/glassmorphism.dart'; import 'package:regroup/Utils/Common/CustomNextButton.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'; @@ -107,7 +107,8 @@ class _CommunitycommitmentState extends State { CustomButton2( text: 'Decline', onPressed: () { - Get.offAllNamed(RouteName.loginScreen); + alertdialogwidget(); + // Get.offAllNamed(RouteName.loginScreen); }) ], ), @@ -115,4 +116,130 @@ class _CommunitycommitmentState extends State { ], )); } + + alertdialogwidget() { + Get.dialog(Dialog( + // backgroundColor: Colors.transparent, + child: Column( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(10.r), + color: const Color(0xFF222935)), + child: Padding( + padding: EdgeInsets.only( + right: 16.w, left: 16.w, top: 20.h, bottom: 40.h), + child: Column( + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + text16w400_FCFCFC("Are you sure you don’t want to be \nNice?", + textAlign: TextAlign.center), + sizedBoxHeight(16.h), + Row( + children: [ + InkWell( + onTap: () { + Get.back(); + dialogwidget(); + + Future.delayed(Duration(seconds: 2), () { + Get.back(); + Get.toNamed(RouteName.signupendpage); + }); + }, + child: Container( + // width: 120.w, + height: 40.h, + decoration: BoxDecoration( + gradient: LinearGradient( + begin: Alignment.centerLeft, + end: Alignment.centerRight, + colors: [ + Color.fromRGBO(255, 255, 255, 0.036), + Color.fromRGBO(255, 255, 255, 0.048), + ], + ), + border: Border.all( + color: Color(0xFF434A53), + width: 1.0, + ), + borderRadius: BorderRadius.circular(30.r)), + child: Padding( + padding: EdgeInsets.symmetric(horizontal: 10.w), + child: + Center(child: text14400white("Yes, I am evil")), + ), + ), + ), + Spacer(), + GestureDetector( + onTap: () { + Get.toNamed(RouteName.signupendpage); + }, + child: Container( + // height: 40.h, + // width: 120.w, + decoration: BoxDecoration( + color: Color(0xFFD90B2E), + borderRadius: BorderRadius.circular(30.r), + ), + child: Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: Center( + child: text14w400_FCFCFC( + "No, I want \nto be Nice")), + ), + ), + ) + ], + ) + ], + ), + ), + ), + ], + ), + )); + } + + dialogwidget() { + Get.dialog(Dialog( + // backgroundColor: Colors.transparent, + child: Column( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(10.r), + color: const Color(0xFF222935)), + child: Padding( + padding: EdgeInsets.only( + right: 80.w, left: 80.w, top: 20.h, bottom: 40.h), + child: Column( + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Image.asset( + "assets/images/png/Group 1000004420.png", + height: 66.h, + width: 66.w, + ), + sizedBoxHeight(14.w), + SizedBox( + width: 182.w, + child: text16w400_FCFCFC( + "Nah, I know you’re nice person...", + textAlign: TextAlign.center), + ), + sizedBoxHeight(16.h), + ], + ), + ), + ), + ], + ), + )); + } } diff --git a/lib/onboarding/Signup/View/signupendpage.dart b/lib/onboarding/Signup/View/signupendpage.dart index 0fed976..7c23f13 100644 --- a/lib/onboarding/Signup/View/signupendpage.dart +++ b/lib/onboarding/Signup/View/signupendpage.dart @@ -27,54 +27,40 @@ class _SignupendPageState extends State { fit: BoxFit.fill)), ), Center( - child: Container( - width: 358.w, - height: 519.h, - decoration: ShapeDecoration( - gradient: LinearGradient( - begin: const Alignment(0.98, -0.21), - end: const Alignment(-0.98, 0.21), - colors: [ - Colors.white.withOpacity(0.05999999865889549), - Colors.white.withOpacity(0.07999999821186066) - ], - ), - shape: RoundedRectangleBorder( - side: const BorderSide(width: 0.80, color: Color(0xFF434A53)), - borderRadius: BorderRadius.circular(5), - ), - ), - child: Padding( - padding: EdgeInsets.symmetric(horizontal: 30.h), - child: Column( - crossAxisAlignment: CrossAxisAlignment.center, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Image.asset('assets/images/png/regroupredtexticon.png'), - sizedBoxHeight(30.h), - text25700white('Welcome Edward '), - sizedBoxHeight(20.h), - // text16400white( - // '''Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.'''), - Text( - '''Congratulations, your account has been successfully created. Get ready to regroup with your community''', - textAlign: TextAlign.center, - style: TextStyle( - color: const Color(0xCCFCFCFC), - fontSize: 16.sp, - fontFamily: 'Helvetica', - fontWeight: FontWeight.w400, - ), + child: Padding( + padding: EdgeInsets.symmetric(horizontal: 30.h), + child: Column( + crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Image.asset('assets/images/png/regroupredtexticon.png'), + sizedBoxHeight(30.h), + text25700white('Welcome Edward '), + sizedBoxHeight(20.h), + // text16400white( + // '''Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.'''), + SizedBox( + width: 246.w, + child: Text( + '''Your account is now active. Welcome to the ReGroup community''', + textAlign: TextAlign.center, + style: TextStyle( + color: const Color(0xCCFCFCFC), + fontSize: 16.sp, + fontFamily: 'Helvetica', + fontWeight: FontWeight.w400, ), - sizedBoxHeight(20.h), - CustomButton( - text: "Let's begin", - onPressed: () { - Get.toNamed(RouteName.mainscreen); - }) - ], + ), ), - )), + sizedBoxHeight(20.h), + CustomButton( + text: "Let's begin", + onPressed: () { + Get.toNamed(RouteName.mainscreen); + }) + ], + ), + ), ) ], )); diff --git a/lib/onboarding/forgotPass/View/ForgotOtp.dart b/lib/onboarding/forgotPass/View/ForgotOtp.dart index 918b4e3..b1baee3 100644 --- a/lib/onboarding/forgotPass/View/ForgotOtp.dart +++ b/lib/onboarding/forgotPass/View/ForgotOtp.dart @@ -2,12 +2,10 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; -import 'package:glassmorphism/glassmorphism.dart'; import 'package:pin_code_fields/pin_code_fields.dart'; import 'package:regroup/Common/base_manager.dart'; import 'package:regroup/Utils/Common/CommonAppbar.dart'; import 'package:regroup/Utils/Common/CustomNextButton.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/onboarding/forgotPass/ViewModel/ForgotPassAPI.dart'; @@ -87,45 +85,14 @@ TextEditingController? pincode = TextEditingController(); ), body: Stack( children: [ - // CommonBlurLeftSecond(), - Positioned(top: 150, right: -30, child: CommonBlurRightSecond()), - Positioned(top: 350, left: -30, child: CommonBlurLeftBlue()), - GlassmorphicContainer( - width: MediaQuery.of(context).size.width, - height: - // 500.h, - MediaQuery.of(context).size.height, - borderRadius: 2, - blur: 6, - alignment: Alignment.bottomLeft, - border: 2, - linearGradient: LinearGradient( - begin: Alignment.topCenter, - end: Alignment.bottomCenter, - colors: [ - Color(0XFF222935).withOpacity(0.60), - Color(0XFF222935).withOpacity(0.60), - Color(0XFF222935).withOpacity(0.60), - Color(0XFF222935).withOpacity(0.60), - - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - ], - ), - borderGradient: LinearGradient( - begin: Alignment.topCenter, - end: Alignment.bottomCenter, - colors: [ - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - // Color.fromARGB(255, 18, 32, 47).withOpacity(0.50), - Color(0XFF222935).withOpacity(0.60), - - Color(0XFF222935).withOpacity(0.60), - ], - ), - child: Padding( + Container( + decoration: const BoxDecoration( + image: DecorationImage( + image: AssetImage("assets/images/png/Ellipse 1496.png"), + fit: BoxFit.fill)), + ), + + Padding( padding: EdgeInsets.symmetric(horizontal: 16.w), child: Column( crossAxisAlignment: CrossAxisAlignment.start, @@ -220,9 +187,9 @@ TextEditingController? pincode = TextEditingController(); ), ], ), - )), - ], - ), - );; + )],), + + ); + } } \ No newline at end of file diff --git a/lib/resources/routes/route_name.dart b/lib/resources/routes/route_name.dart index 49dfdfd..ebb1e53 100644 --- a/lib/resources/routes/route_name.dart +++ b/lib/resources/routes/route_name.dart @@ -14,6 +14,8 @@ class RouteName { static const String individualactivitystep2 = '/individualactivitystep2'; static const String individualgroupstep3 = '/individualgroupstep3'; static const String individualcommunitystep4 = '/individualcommunitystep4'; + static const String findcommunitypage = '/findcommunitypage'; + static const String communitycommitscreen = '/communitycommitscreen'; static const String signupendpage = '/signupendpage'; diff --git a/lib/resources/routes/routes.dart b/lib/resources/routes/routes.dart index 12a47a7..66c203f 100644 --- a/lib/resources/routes/routes.dart +++ b/lib/resources/routes/routes.dart @@ -95,6 +95,7 @@ import 'package:regroup/onboarding/Signup/View/Business/View/step1Letusunderstan import 'package:regroup/onboarding/Signup/View/Business/View/step2Selectgroup.dart'; import 'package:regroup/onboarding/Signup/View/Business/View/step3SelectCommunity.dart'; import 'package:regroup/onboarding/Signup/View/Business/View/tellusbusiness.dart'; +import 'package:regroup/onboarding/Signup/View/Individual/FindCommunityPage.dart'; import 'package:regroup/onboarding/Signup/View/Individual/step1Selectprofile.dart'; import 'package:regroup/onboarding/Signup/View/Individual/step2Selectactivity.dart'; import 'package:regroup/onboarding/Signup/View/Individual/step3Selectyourgroup.dart'; @@ -207,6 +208,10 @@ class AppRoutes { GetPage( name: RouteName.individualcommunitystep4, page: () => const SelectIndividualCommunity(), + ), + GetPage( + name: RouteName.findcommunitypage, + page: () => const FindCommunityPage(), ), GetPage( name: RouteName.communitycommitscreen,