flutter(rider): rebuild lib on Cubit/Bloc + Tripz backend (core + auth slice)

- keep store identity (com.mobileapp.store.ride, shorebird, firebase, fonts); old lib -> lib_old_getx
- core: config/di/router(go_router)/theme/api_client(dio+tenant+bearer)/token_store(secure)
- auth: repo + AuthCubit + OTP phone/otp screens; home: flutter_map (OSM placeholder, انطلق TODO)
- android usesCleartextTraffic=true for http API; maps=flutter_map (no Google), state=Cubit

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-16 20:47:55 +03:00
co-authored by Claude Opus 4.8
parent 6234e66471
commit 6116d23d0c
203 changed files with 573 additions and 83094 deletions
@@ -1,57 +0,0 @@
// import 'package:home_widget/home_widget.dart';
// class TripzHomeWidgetProvider {
// static const String widgetName = 'TripzHomeWidget';
// // Initialize Home Widget
// static Future<void> initHomeWidget() async {
// await HomeWidget.registerInteractivityCallback(backgroundCallback);
// }
// // Background Callback for Widget Updates
// static Future<void> backgroundCallback(Uri? uri) async {
// if (uri?.host == 'updateWidget') {
// // Logic to update widget data
// await updateWidgetData();
// }
// }
// // Update Widget Data Method
// static Future<void> updateWidgetData() async {
// // Fetch current ride details
// final rideData = await _fetchCurrentRideDetails();
// // Update Widget with Ride Information
// await HomeWidget.saveWidgetData<String>(
// 'ride_destination', rideData.destination);
// await HomeWidget.saveWidgetData<String>(
// 'ride_estimated_time', rideData.estimatedTime);
// await HomeWidget.saveWidgetData<double>('ride_fare', rideData.fare);
// // Trigger Widget Update
// await HomeWidget.updateWidget(
// name: widgetName,
// iOSName: 'TripzWidgetProvider',
// androidName: 'com.mobileapp.store.ride.HomeWidgetProvider',
// );
// }
// // Mock method to fetch ride details (replace with actual implementation)
// static Future<RideData> _fetchCurrentRideDetails() async {
// // Implement actual data fetching logic
// return RideData(
// destination: 'Downtown Office', estimatedTime: '25 mins', fare: 15.50);
// }
// }
// // Ride Data Model
// class RideData {
// final String destination;
// final String estimatedTime;
// final double fare;
// RideData(
// {required this.destination,
// required this.estimatedTime,
// required this.fare});
// }