Updated Minor changes!

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

@ -119,6 +119,7 @@ class GlobalConsts {
static String attachDamagePartImage = "Please add part image";
static String adDurationDateError = "Ad Duration start date cannot be empty";
static String adReservablePriceErrorConst = "Ad Reservable price cannot be empty";
static String homeLocationEmptyError = "Home location cannot be empty";
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.";
}

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

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

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

@ -3,11 +3,11 @@ import 'package:mc_common_app/extensions/string_extensions.dart';
import 'package:mc_common_app/theme/colors.dart';
class CheckBoxWithTitleDescription extends StatelessWidget {
bool isSelected;
String title, description;
Function(bool) onSelection;
final bool isSelected;
final String title, description;
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
Widget build(BuildContext context) {

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

Loading…
Cancel
Save