Updated Minor changes!

pull/3/head
FaizHashmiCS22 3 years ago
parent 35262c804a
commit 6d82a60588

@ -119,6 +119,7 @@ class GlobalConsts {
static String attachDamagePartImage = "Please add part image"; static String attachDamagePartImage = "Please add part image";
static String adDurationDateError = "Ad Duration start date cannot be empty"; static String adDurationDateError = "Ad Duration start date cannot be empty";
static String adReservablePriceErrorConst = "Ad Reservable price cannot be empty"; static String adReservablePriceErrorConst = "Ad Reservable price cannot be empty";
static String homeLocationEmptyError = "Home location cannot be empty";
static String reserveAdPriceInfo = static String reserveAdPriceInfo =
"Some dummy description to explain the following concept. This price will be for 24 hours and if a user cancels the reservations before 24 hours then the amount will be automatically refunded to the buyer."; "Some dummy description to explain the following concept. This price will be for 24 hours and if a user cancels the reservations before 24 hours then the amount will be automatically refunded to the buyer.";
} }

@ -56,6 +56,10 @@ class AppRoutes {
static const String adsDetailView = "/adsDetailView"; static const String adsDetailView = "/adsDetailView";
static const String createAdView = "/createAdView"; static const String createAdView = "/createAdView";
static const String bookAppointmenServicesView = "/bookAppointmenServicesView"; static const String bookAppointmenServicesView = "/bookAppointmenServicesView";
static const String bookAppointmentsItemView = "/bookAppointmentsItemView";
// Payments
static const String paymentMethodsView = "/paymentMethodsView"; static const String paymentMethodsView = "/paymentMethodsView";
@ -84,5 +88,6 @@ class AppRoutes {
changeMobilePage: (context) => ChangeMobilePage(), changeMobilePage: (context) => ChangeMobilePage(),
changeEmailPage: (context) => const ChangeEmailPage(), changeEmailPage: (context) => const ChangeEmailPage(),
editAccountPage: (context) => EditAccountPage(), editAccountPage: (context) => EditAccountPage(),
}; };
} }

@ -273,6 +273,7 @@ class BottomSheetAdSpecialServiceContent extends StatelessWidget {
8.height, 8.height,
BuildTimeSlots( BuildTimeSlots(
timeSlots: adVM.adSSTimeSlots, timeSlots: adVM.adSSTimeSlots,
onPressed: (index) => adVM.updateIsSelectedInSlots(index), onPressed: (index) => adVM.updateIsSelectedInSlots(index),
), ),
], ],

@ -28,7 +28,8 @@ class _LoginWithPasswordState extends State<LoginWithPassword> {
int otpType = 1; int otpType = 1;
ClassType type = ClassType.EMAIL; ClassType type = ClassType.EMAIL;
String phoneNum = "580816976", password = "123@Shf"; //TODO: ONLY FOR DEVELOPMENT PURPOSE
String phoneNum = "966504278212", password = "Fa@123";
String email = ""; String email = "";
String countryCode = ""; String countryCode = "";
Country? _country; Country? _country;

@ -3,11 +3,11 @@ import 'package:mc_common_app/extensions/string_extensions.dart';
import 'package:mc_common_app/theme/colors.dart'; import 'package:mc_common_app/theme/colors.dart';
class CheckBoxWithTitleDescription extends StatelessWidget { class CheckBoxWithTitleDescription extends StatelessWidget {
bool isSelected; final bool isSelected;
String title, description; final String title, description;
Function(bool) onSelection; final Function(bool) onSelection;
CheckBoxWithTitleDescription({required this.isSelected, required this.title, required this.description, required this.onSelection, Key? key}) : super(key: key); const CheckBoxWithTitleDescription({required this.isSelected, required this.title, required this.description, required this.onSelection, Key? key}) : super(key: key);
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {

@ -15,8 +15,10 @@ class BuildTimeSlots extends StatelessWidget {
height: 37, height: 37,
width: double.infinity, width: double.infinity,
child: ListView.builder( child: ListView.builder(
physics: const BouncingScrollPhysics(),
itemCount: timeSlots.length, itemCount: timeSlots.length,
scrollDirection: Axis.horizontal, scrollDirection: Axis.horizontal,
shrinkWrap: true,
itemBuilder: (BuildContext context, int index) { itemBuilder: (BuildContext context, int index) {
return InkWell( return InkWell(
onTap: () { onTap: () {

Loading…
Cancel
Save