fix(driver): ضمّ حزم get و get_storage داخل المستودع
apps/driver كان يشير إلى `../../Intaleq/packages/get` خارج المستودع — وهو مسار يُحل من apps/driver إلى Tripz/Intaleq/ غير الموجود، فلا يمرّ `flutter pub get` إطلاقاً. (فجوة docs/30 §2.6.) ضُمّت نسخة **انطلق** تحديداً (App/Intaleq/packages) لا فرع apps/rider: الفرعان يختلفان فعلاً — snackbar_controller.dart و get_queue.dart وغيرهما مختلفة بين النسختين، فاستعارة فرع rider كانت ستغيّر سلوك السائق صامتة. apps/driver/packages/get (3.5 م.ب، 202 ملف dart مع get_storage) apps/driver/packages/get_storage pubspec: ../../Intaleq/packages/* → ./packages/* (3 مواضع، منها dependency_overrides سطر 142) المستودع صار مكتفياً ذاتياً: لا تبعية مسار خارج شجرته. لم يُمسّ App/Intaleq. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
4d8414c96b
commit
ecbe245b77
@@ -0,0 +1,17 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:get_storage/get_storage.dart';
|
||||
|
||||
void main() {
|
||||
final counter = 'counter';
|
||||
final isDarkMode = 'isDarkMode';
|
||||
GetStorage box = GetStorage();
|
||||
test('GetStorage read and write operation', () {
|
||||
box.write(counter, 0);
|
||||
expect(box.read(counter), 0);
|
||||
});
|
||||
|
||||
test('save the state of brightness mode of app in GetStorage', () {
|
||||
box.write(isDarkMode, true);
|
||||
expect(box.read(isDarkMode), true);
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// This is a basic Flutter widget test.
|
||||
//
|
||||
// To perform an interaction with a widget in your test, use the WidgetTester
|
||||
// utility that Flutter provides. For example, you can send tap and scroll
|
||||
// gestures. You can also use WidgetTester to find child widgets in the widget
|
||||
// tree, read text, and verify that the values of widget properties are correct.
|
||||
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('Counter increments smoke test', (WidgetTester tester) async {});
|
||||
}
|
||||
Reference in New Issue
Block a user