Updated Minor changes!

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

@ -57,6 +57,7 @@ class AppRoutes {
static const String createAdView = "/createAdView";
static const String bookAppointmenServicesView = "/bookAppointmenServicesView";
static const String bookAppointmentsItemView = "/bookAppointmentsItemView";
static const String reviewAppointmentView = "/reviewAppointmentView";
// Payments

@ -33,7 +33,16 @@ class AdDuration extends StatelessWidget {
isScrollControlled: true,
enableDrag: true,
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);
},
),
],
).toWhiteContainer(width: double.infinity, allPading: 12, margin: const EdgeInsets.symmetric(horizontal: 21, vertical: 10)),
Column(
@ -100,9 +108,7 @@ class AdDuration extends StatelessWidget {
TxtField(
postfixData: Icons.info_outline_rounded,
postFixDataColor: MyColors.grey77Color,
onPostFixPressed: () {
reservePriceInfoClicked(context);
},
onPostFixPressed: () => reservePriceInfoClicked(context),
value: adVM.adReserveAmount,
errorValue: adVM.adReservePriceError,
keyboardType: TextInputType.number,

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

Loading…
Cancel
Save