Quick Fixes

aamir_dev
Faiz Hashmi 10 months ago
parent ea54455fdc
commit 44ae05f9e7

@ -16,10 +16,29 @@
or higher if your app targets Android 14 (API level 34) or higher. -->
<uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED" />
<queries>
<!-- If your app checks for SMS support -->
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="sms" />
</intent>
<!-- If your app checks for call support -->
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="tel" />
</intent>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="mailto" />
</intent>
</queries>
<application
android:icon="@mipmap/ic_launcher"
android:extractNativeLibs="true"
android:icon="@mipmap/ic_launcher"
android:label="Provider">
<activity
android:name=".MainActivity"
@ -56,6 +75,7 @@
</intent-filter>
</activity>
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyCyDbWUM9d_sBUGIE8PcuShzPaqO08NSC8" />

@ -23,7 +23,7 @@ import 'package:easy_localization/easy_localization.dart';
class SchedulesListPage extends StatefulWidget {
final String? branchId;
const SchedulesListPage(this.branchId, {Key? key}) : super(key: key);
const SchedulesListPage(this.branchId, {super.key});
@override
State<SchedulesListPage> createState() => _SchedulesListPageState();

@ -105,7 +105,7 @@ class _ServicesListPageState extends State<ServicesListPage> {
),
8.width,
Expanded(
flex: 10,
flex: 8,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.start,
@ -117,18 +117,20 @@ class _ServicesListPageState extends State<ServicesListPage> {
],
),
// 5.height,
Container(
child: ("${LocaleKeys.branchName.tr()}: ${categoryData.branchName}").toText(
fontSize: 12,
color: MyColors.lightTextColor,
),
Row(
children: [
Flexible(
child: ("${LocaleKeys.branchName.tr()}: ${categoryData.branchName}").toText(
fontSize: 12,
color: MyColors.lightTextColor,
),
),
],
),
if (categoryData.services != null) ...[
Container(
child: ("${LocaleKeys.totalNumberOfServices.tr()} ${categoryData.services!.length}").toText(
fontSize: 12,
color: MyColors.lightTextColor,
),
("${LocaleKeys.totalNumberOfServices.tr()} ${categoryData.services!.length}").toText(
fontSize: 12,
color: MyColors.lightTextColor,
),
],
],
@ -137,9 +139,10 @@ class _ServicesListPageState extends State<ServicesListPage> {
Expanded(
flex: 4,
child: Column(
crossAxisAlignment: CrossAxisAlignment.end,
children: [
LocaleKeys.active.tr().toText(fontSize: 16),
8.width,
5.height,
Container(
width: 50,
height: 30,
@ -180,7 +183,6 @@ class _ServicesListPageState extends State<ServicesListPage> {
}
Future<bool> updateCategoryStatus({required bool isCategoryActive, required int categoryId, required int branchId}) async {
log("isCategoryActive: $isCategoryActive");
final serviceVM = context.read<ServiceVM>();
bool status = await serviceVM.updateCategoryStatus(
context: context,

@ -15,7 +15,7 @@ import 'package:provider/provider.dart';
import 'package:easy_localization/easy_localization.dart';
class ServiceProviderWidget extends StatelessWidget {
const ServiceProviderWidget({Key? key}) : super(key: key);
const ServiceProviderWidget({super.key});
@override
Widget build(BuildContext context) {

@ -41,8 +41,8 @@ dependencies:
mc_common_app:
# path: D:\Development\car_common_app
path: /Users/aamir/StudioProjects/car_common_app
# path: /Users/faizhashmi/Development/Projects/MyProjects/CloudSolutions/car_common_app
path: /Volumes/Data/Projects/Flutter/car_common_app
# path: /Users/aamir/StudioProjects/car_common_app

Loading…
Cancel
Save