Quick Fixes

aamir_dev
Faiz Hashmi 10 months ago
parent 8260ee064d
commit b621556158

@ -16,10 +16,29 @@
or higher if your app targets Android 14 (API level 34) or higher. --> or higher if your app targets Android 14 (API level 34) or higher. -->
<uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED" /> <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 <application
android:icon="@mipmap/ic_launcher"
android:extractNativeLibs="true" android:extractNativeLibs="true"
android:icon="@mipmap/ic_launcher"
android:label="Provider"> android:label="Provider">
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"
@ -56,6 +75,7 @@
</intent-filter> </intent-filter>
</activity> </activity>
<meta-data <meta-data
android:name="com.google.android.geo.API_KEY" android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyCyDbWUM9d_sBUGIE8PcuShzPaqO08NSC8" /> android:value="AIzaSyCyDbWUM9d_sBUGIE8PcuShzPaqO08NSC8" />

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

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

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

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

Loading…
Cancel
Save