المجلدات وأسماء حزم dart واستيراداتها: siro_rider → intaleq_rider siro_driver → intaleq_driver siro_admin → intaleq_admin siro_service → intaleq_service شمل ذلك `name:` في كل pubspec وكل `package:siro_*` في الاستيرادات (115 ملفاً في rider وحده)، وإشارات أسماء المجلدات في docs/ وتعليق في backend/Admin/notifications/broadcast.php. لم تبقَ إشارة واحدة (تحقّقت). + ضُمّت حزم get و get_storage داخل intaleq_driver/packages/ وحُوّلت مساراتها الثلاثة من `../../Intaleq/packages/*` إلى `./packages/*`. كانت تُحل عرضاً إلى مجلد App/Intaleq القديم المجاور — تبعية خارج المستودع تنكسر بأول نقل. لم يبقَ في أي تطبيق تبعية مسار خارج الشجرة. ⚠️ لم تُمسّ بعد: هويات المتاجر (applicationId · PRODUCT_BUNDLE_IDENTIFIER · shorebird app_id) ولا الألوان ولا النصوص المرئية ولا النطاقات — كل منها كوميت منفصل، والهويات تحتاج قرار المالك. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
112 lines
2.7 KiB
Dart
Executable File
112 lines
2.7 KiB
Dart
Executable File
import 'package:flutter/material.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:intaleq_driver/constant/colors.dart';
|
|
|
|
class BottomBarController extends GetxController {
|
|
var currentIndex = 0.obs;
|
|
|
|
void changePage(int index) {
|
|
currentIndex.value = index;
|
|
}
|
|
}
|
|
|
|
class HomeScreen extends StatelessWidget {
|
|
final BottomBarController controller = Get.put(BottomBarController());
|
|
|
|
HomeScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: Text('Bottom Bar Example'.tr),
|
|
),
|
|
body: Obx(() => IndexedStack(
|
|
index: controller.currentIndex.value,
|
|
children: const [
|
|
HomeView(),
|
|
ProfileView(),
|
|
StatisticsView(),
|
|
WalletView(),
|
|
],
|
|
)),
|
|
bottomNavigationBar: Obx(() => BottomNavigationBar(
|
|
backgroundColor: Theme.of(context).cardColor,
|
|
currentIndex: controller.currentIndex.value,
|
|
onTap: controller.changePage,
|
|
selectedItemColor: AppColor.primaryColor,
|
|
unselectedItemColor: Theme.of(context).hintColor,
|
|
type: BottomNavigationBarType.fixed,
|
|
items: [
|
|
BottomNavigationBarItem(
|
|
icon: const Icon(Icons.home),
|
|
label: 'Home'.tr,
|
|
),
|
|
BottomNavigationBarItem(
|
|
icon: const Icon(Icons.person),
|
|
label: 'Profile'.tr,
|
|
),
|
|
BottomNavigationBarItem(
|
|
icon: const Icon(Icons.bar_chart),
|
|
label: 'Statistics'.tr,
|
|
),
|
|
BottomNavigationBarItem(
|
|
icon: const Icon(Icons.account_balance_wallet),
|
|
label: 'Wallet'.tr,
|
|
),
|
|
],
|
|
)),
|
|
|
|
);
|
|
}
|
|
}
|
|
|
|
class HomeView extends StatelessWidget {
|
|
const HomeView({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
Map<String, dynamic> data;
|
|
return const Center(
|
|
child: Column(
|
|
children: [
|
|
Text('Home View'),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
class ProfileView extends StatelessWidget {
|
|
const ProfileView({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return const Center(
|
|
child: Text('Profile View'),
|
|
);
|
|
}
|
|
}
|
|
|
|
class StatisticsView extends StatelessWidget {
|
|
const StatisticsView({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return const Center(
|
|
child: Text('Statistics View'),
|
|
);
|
|
}
|
|
}
|
|
|
|
class WalletView extends StatelessWidget {
|
|
const WalletView({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return const Center(
|
|
child: Text('Wallet View'),
|
|
);
|
|
}
|
|
}
|