fix localization and UI updates
#4
Merged
FaizHashmiCS22
merged 1 commits from fatima_dev into faiz_development 5 days ago
@ -1,111 +1,111 @@
|
|||||||
|
//
|
||||||
import 'package:flutter/material.dart';
|
// import 'package:flutter/material.dart';
|
||||||
import 'package:mc_common_app/extensions/int_extensions.dart';
|
// import 'package:mc_common_app/extensions/int_extensions.dart';
|
||||||
import 'package:mc_common_app/extensions/string_extensions.dart';
|
// 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';
|
||||||
import 'package:mc_common_app/widgets/extensions/extensions_widget.dart';
|
// import 'package:mc_common_app/widgets/extensions/extensions_widget.dart';
|
||||||
|
//
|
||||||
class AdWidget extends StatelessWidget {
|
// class AdWidget extends StatelessWidget {
|
||||||
final int count;
|
// final int count;
|
||||||
|
//
|
||||||
const AdWidget({Key? key, required this.count}) : super(key: key);
|
// const AdWidget({Key? key, required this.count}) : super(key: key);
|
||||||
|
//
|
||||||
@override
|
// @override
|
||||||
Widget build(BuildContext context) {
|
// Widget build(BuildContext context) {
|
||||||
return ListView.builder(
|
// return ListView.builder(
|
||||||
itemCount: count,
|
// itemCount: count,
|
||||||
shrinkWrap: true,
|
// shrinkWrap: true,
|
||||||
physics: const NeverScrollableScrollPhysics(),
|
// physics: const NeverScrollableScrollPhysics(),
|
||||||
itemBuilder: (BuildContext context, int index) {
|
// itemBuilder: (BuildContext context, int index) {
|
||||||
return Padding(
|
// return Padding(
|
||||||
padding: const EdgeInsets.only(bottom: 15),
|
// padding: const EdgeInsets.only(bottom: 15),
|
||||||
child: buildAdContainer(),
|
// child: buildAdContainer(),
|
||||||
);
|
// );
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
Widget buildAdContainer() {
|
// Widget buildAdContainer() {
|
||||||
return Row(
|
// return Row(
|
||||||
children: [
|
// children: [
|
||||||
Image.asset(
|
// Image.asset(
|
||||||
"assets/images/bn_car.jpeg",
|
// "assets/images/bn_car.jpeg",
|
||||||
width: 80,
|
// width: 80,
|
||||||
height: 80,
|
// height: 80,
|
||||||
fit: BoxFit.cover,
|
// fit: BoxFit.cover,
|
||||||
),
|
// ),
|
||||||
12.width,
|
// 12.width,
|
||||||
Expanded(
|
// Expanded(
|
||||||
child: Column(
|
// child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
// children: [
|
||||||
Row(
|
// Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
// mainAxisAlignment: MainAxisAlignment.start,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
// children: [
|
||||||
Expanded(
|
// Expanded(
|
||||||
child: Column(
|
// child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
// mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: [
|
// children: [
|
||||||
"Toyota Crolla".toText(fontSize: 16, isBold: true),
|
// "Toyota Crolla".toText(fontSize: 16, isBold: true),
|
||||||
Row(
|
// Row(
|
||||||
children: [
|
// children: [
|
||||||
"Model:".toText(
|
// "Model:".toText(
|
||||||
color: MyColors.lightTextColor,
|
// color: MyColors.lightTextColor,
|
||||||
),
|
// ),
|
||||||
2.width,
|
// 2.width,
|
||||||
"2019".toText(),
|
// "2019".toText(),
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
Row(
|
// Row(
|
||||||
children: [
|
// children: [
|
||||||
"Mileage:".toText(
|
// "Mileage:".toText(
|
||||||
color: MyColors.lightTextColor,
|
// color: MyColors.lightTextColor,
|
||||||
),
|
// ),
|
||||||
2.width,
|
// 2.width,
|
||||||
"73,000 km".toText(),
|
// "73,000 km".toText(),
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
Column(
|
// Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
// crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
// mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: [
|
// children: [
|
||||||
"Riyadh".toText(
|
// "Riyadh".toText(
|
||||||
color: MyColors.lightTextColor,
|
// color: MyColors.lightTextColor,
|
||||||
),
|
// ),
|
||||||
"9 Hours Ago".toText(
|
// "9 Hours Ago".toText(
|
||||||
color: MyColors.lightTextColor,
|
// color: MyColors.lightTextColor,
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
8.height,
|
// 8.height,
|
||||||
Row(
|
// Row(
|
||||||
children: [
|
// children: [
|
||||||
Expanded(
|
// Expanded(
|
||||||
child: Row(
|
// child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
// mainAxisAlignment: MainAxisAlignment.start,
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
// crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
children: [
|
// children: [
|
||||||
"30,000".toText(fontSize: 16, isBold: true),
|
// "30,000".toText(fontSize: 16, isBold: true),
|
||||||
2.width,
|
// 2.width,
|
||||||
"SAR:".toText(
|
// "SAR:".toText(
|
||||||
color: MyColors.lightTextColor,
|
// color: MyColors.lightTextColor,
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
const Icon(Icons.arrow_forward)
|
// const Icon(Icons.arrow_forward)
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
).toWhiteContainer(width: double.infinity, allPading: 12);
|
// ).toWhiteContainer(width: double.infinity, allPading: 12);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|||||||
@ -1,90 +1,90 @@
|
|||||||
|
//
|
||||||
import 'package:flutter/material.dart';
|
// import 'package:flutter/material.dart';
|
||||||
import 'package:mc_common_app/extensions/int_extensions.dart';
|
// import 'package:mc_common_app/extensions/int_extensions.dart';
|
||||||
import 'package:mc_common_app/extensions/string_extensions.dart';
|
// 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';
|
||||||
import 'package:mc_common_app/widgets/extensions/extensions_widget.dart';
|
// import 'package:mc_common_app/widgets/extensions/extensions_widget.dart';
|
||||||
|
//
|
||||||
class AppointmentSliderWidget extends StatelessWidget {
|
// class AppointmentSliderWidget extends StatelessWidget {
|
||||||
const AppointmentSliderWidget({Key? key}) : super(key: key);
|
// const AppointmentSliderWidget({Key? key}) : super(key: key);
|
||||||
|
//
|
||||||
@override
|
// @override
|
||||||
Widget build(BuildContext context) {
|
// Widget build(BuildContext context) {
|
||||||
return Column(
|
// return Column(
|
||||||
children: [
|
// children: [
|
||||||
Row(
|
// Row(
|
||||||
children: [
|
// children: [
|
||||||
Expanded(
|
// Expanded(
|
||||||
child: Column(
|
// child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
// mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: [
|
// children: [
|
||||||
"Olaya Brach".toText(
|
// "Olaya Brach".toText(
|
||||||
color: MyColors.lightTextColor,
|
// color: MyColors.lightTextColor,
|
||||||
isBold: true,
|
// isBold: true,
|
||||||
),
|
// ),
|
||||||
"Abdullah Alhbas".toText(
|
// "Abdullah Alhbas".toText(
|
||||||
isBold: true,
|
// isBold: true,
|
||||||
fontSize: 14,
|
// fontSize: 14,
|
||||||
),
|
// ),
|
||||||
Row(
|
// Row(
|
||||||
children: [
|
// children: [
|
||||||
"Appt. On:".toText(
|
// "Appt. On:".toText(
|
||||||
color: MyColors.lightTextColor,
|
// color: MyColors.lightTextColor,
|
||||||
),
|
// ),
|
||||||
2.width,
|
// 2.width,
|
||||||
"19-Mar-2023 11:48 AM".toText(),
|
// "19-Mar-2023 11:48 AM".toText(),
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
"1+ Requests".toText(fontSize: 10).toContainer(
|
// "1+ Requests".toText(fontSize: 10).toContainer(
|
||||||
borderRadius: 15,
|
// borderRadius: 15,
|
||||||
backgroundColor: MyColors.lightGreyEAColor,
|
// backgroundColor: MyColors.lightGreyEAColor,
|
||||||
padding: const EdgeInsets.symmetric(
|
// padding: const EdgeInsets.symmetric(
|
||||||
vertical: 6,
|
// vertical: 6,
|
||||||
horizontal: 12,
|
// horizontal: 12,
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
8.height,
|
// 8.height,
|
||||||
Row(
|
// Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
// crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
children: [
|
// children: [
|
||||||
Expanded(
|
// Expanded(
|
||||||
child: Column(
|
// child: Column(
|
||||||
children: [
|
// children: [
|
||||||
showServices("Maintenance"),
|
// showServices("Maintenance"),
|
||||||
2.height,
|
// 2.height,
|
||||||
showServices("Accessories and Modification"),
|
// showServices("Accessories and Modification"),
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
const Icon(
|
// const Icon(
|
||||||
Icons.arrow_forward,
|
// Icons.arrow_forward,
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
).toWhiteContainer(width: double.infinity, allPading: 0);
|
// ).toWhiteContainer(width: double.infinity, allPading: 0);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
Widget showServices(String title) {
|
// Widget showServices(String title) {
|
||||||
return Row(
|
// return Row(
|
||||||
children: [
|
// children: [
|
||||||
const Icon(
|
// const Icon(
|
||||||
Icons.ac_unit,
|
// Icons.ac_unit,
|
||||||
color: MyColors.primaryColor,
|
// color: MyColors.primaryColor,
|
||||||
size: 18,
|
// size: 18,
|
||||||
),
|
// ),
|
||||||
8.width,
|
// 8.width,
|
||||||
title.toText(
|
// title.toText(
|
||||||
fontSize: 14,
|
// fontSize: 14,
|
||||||
isBold: true,
|
// isBold: true,
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|||||||
Loading…
Reference in New Issue