debug changes

aamir_dev
Faiz Hashmi 2 years ago
parent 67c7c485d9
commit 42eca4c26f

@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android { android {
compileSdkVersion 33 compileSdkVersion 34
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8

@ -2,37 +2,41 @@
package="com.example.car_customer_app"> package="com.example.car_customer_app">
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<application <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
<application
android:icon="@mipmap/ic_launcher"
android:label="car_customer_app" android:label="car_customer_app"
android:icon="@mipmap/ic_launcher"> android:requestLegacyExternalStorage="true">
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:exported="true" android:exported="true"
android:hardwareAccelerated="true"
android:launchMode="singleTop" android:launchMode="singleTop"
android:theme="@style/LaunchTheme" android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize"> android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as <!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. --> to determine the Window background behind the Flutter UI. -->
<meta-data <meta-data
android:name="io.flutter.embedding.android.NormalTheme" android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme" android:resource="@style/NormalTheme" />
/>
<!-- Displays an Android View that continues showing the launch screen <!-- Displays an Android View that continues showing the launch screen
Drawable until Flutter paints its first frame, then this splash Drawable until Flutter paints its first frame, then this splash
screen fades out. A splash screen is useful to avoid any visual screen fades out. A splash screen is useful to avoid any visual
gap between the end of Android's launch screen and the painting of gap between the end of Android's launch screen and the painting of
Flutter's first frame. --> Flutter's first frame. -->
<meta-data <meta-data
android:name="io.flutter.embedding.android.SplashScreenDrawable" android:name="io.flutter.embedding.android.SplashScreenDrawable"
android:resource="@drawable/launch_background" android:resource="@drawable/launch_background" />
/>
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN"/> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER"/> <category android:name="android.intent.category.LAUNCHER" />
</intent-filter> </intent-filter>
</activity> </activity>
<!-- Don't delete the meta-data below. <!-- Don't delete the meta-data below.

@ -32,6 +32,8 @@ import 'package:provider/single_child_widget.dart';
import 'package:sizer/sizer.dart'; import 'package:sizer/sizer.dart';
import 'package:intl/date_symbol_data_local.dart'; import 'package:intl/date_symbol_data_local.dart';
final navigatorKey = GlobalKey<NavigatorState>();
//test commit //test commit
Future<void> main() async { Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized(); WidgetsFlutterBinding.ensureInitialized();
@ -107,6 +109,7 @@ class MyApp extends StatelessWidget {
), ),
); );
return MaterialApp( return MaterialApp(
navigatorKey: navigatorKey,
theme: AppTheme.getTheme( theme: AppTheme.getTheme(
isArabic: EasyLocalization.of(context)?.locale.languageCode == "ar", isArabic: EasyLocalization.of(context)?.locale.languageCode == "ar",
), ),

@ -144,7 +144,11 @@ class _DashboardPageState extends State<DashboardPage> {
10.width, 10.width,
MyAssets.notificationsBellIcon.buildSvg().onPress(() {}), MyAssets.notificationsBellIcon.buildSvg().onPress(() {}),
15.width, 15.width,
Icon(Icons.message, color: MyColors.darkTextColor).onPress(() {}), Icon(Icons.message, color: MyColors.darkTextColor).onPress(() {
context.read<AppointmentsVM>().populateAppointmentsFilterList();
_onRefresh();
}),
], ],
) )
: InkWell( : InkWell(

@ -20,6 +20,7 @@ class AdsFragment extends StatelessWidget {
Future<void> onRefreshAds(BuildContext context) async { Future<void> onRefreshAds(BuildContext context) async {
AdVM adVM = context.read<AdVM>(); AdVM adVM = context.read<AdVM>();
adVM.populateAdsFilterList();
await adVM.getExploreAds(); await adVM.getExploreAds();
await adVM.getMyAds(); await adVM.getMyAds();
} }
@ -58,6 +59,10 @@ class AdsFragment extends StatelessWidget {
txtColor: adVM.isExploreAdsTapped ? MyColors.white : MyColors.darkTextColor, txtColor: adVM.isExploreAdsTapped ? MyColors.white : MyColors.darkTextColor,
onPressed: () { onPressed: () {
print("ads: ${AppState().getUser.data!.accessToken}"); print("ads: ${AppState().getUser.data!.accessToken}");
adVM.populateAdsFilterList();
if (adVM.myAds.isEmpty) {
adVM.getMyAds();
}
adVM.updateIsExploreAds(true); adVM.updateIsExploreAds(true);
}, },
), ),

Loading…
Cancel
Save