Updated Minor changes!

pull/3/head
FaizHashmiCS22 3 years ago
parent b14e0020dc
commit 967c522f60

@ -57,6 +57,7 @@ class AppRoutes {
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"; static const String bookAppointmentsItemView = "/bookAppointmentsItemView";
static const String reviewAppointmentView = "/reviewAppointmentView";
// Payments // Payments

@ -33,7 +33,16 @@ class AdDuration extends StatelessWidget {
isScrollControlled: true, isScrollControlled: true,
enableDrag: true, enableDrag: true,
builder: (BuildContext context) { builder: (BuildContext context) {
return InfoBottomSheet(title: "Reserve Ad Price Info", description: GlobalConsts.reserveAdPriceInfo); return InfoBottomSheet(
title: "Reserve Ad Price Info",
description: Flexible(
child: GlobalConsts.reserveAdPriceInfo.toText(
textAlign: TextAlign.justify,
fontSize: 16,
color: MyColors.lightTextColor,
isBold: false,
)),
);
}); });
} }
@ -75,7 +84,6 @@ class AdDuration extends StatelessWidget {
adVM.updateSelectionDurationStartDate(formattedDate); adVM.updateSelectionDurationStartDate(formattedDate);
}, },
), ),
], ],
).toWhiteContainer(width: double.infinity, allPading: 12, margin: const EdgeInsets.symmetric(horizontal: 21, vertical: 10)), ).toWhiteContainer(width: double.infinity, allPading: 12, margin: const EdgeInsets.symmetric(horizontal: 21, vertical: 10)),
Column( Column(
@ -100,9 +108,7 @@ class AdDuration extends StatelessWidget {
TxtField( TxtField(
postfixData: Icons.info_outline_rounded, postfixData: Icons.info_outline_rounded,
postFixDataColor: MyColors.grey77Color, postFixDataColor: MyColors.grey77Color,
onPostFixPressed: () { onPostFixPressed: () => reservePriceInfoClicked(context),
reservePriceInfoClicked(context);
},
value: adVM.adReserveAmount, value: adVM.adReserveAmount,
errorValue: adVM.adReservePriceError, errorValue: adVM.adReservePriceError,
keyboardType: TextInputType.number, keyboardType: TextInputType.number,

@ -6,14 +6,14 @@ import 'package:mc_common_app/widgets/extensions/extensions_widget.dart';
class InfoBottomSheet extends StatelessWidget { class InfoBottomSheet extends StatelessWidget {
final String title; final String title;
final String description; final Widget description;
const InfoBottomSheet({Key? key, required this.title, required this.description}) : super(key: key); const InfoBottomSheet({Key? key, required this.title, required this.description}) : super(key: key);
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return SizedBox( return SingleChildScrollView(
height: MediaQuery.of(context).size.height * 0.4, // height: MediaQuery.of(context).size.height * 0.35,
child: Column( child: Column(
children: [ children: [
Container( Container(
@ -30,13 +30,7 @@ class InfoBottomSheet extends StatelessWidget {
], ],
), ),
8.height, 8.height,
Flexible( description,
child: description.toText(
textAlign: TextAlign.justify,
fontSize: 16,
color: MyColors.lightTextColor,
isBold: true,
)),
], ],
).horPaddingMain()); ).horPaddingMain());
} }

Loading…
Cancel
Save