Files
dmit.b f1e88b1ac3 Add Android support with configurable server URL and location permissions
- Add shared_preferences for persisting server URL
- Add SettingsService and PlatformService
- Add server URL input field on non-web platforms
- Make ApiConfig baseUrl configurable at runtime
- Add Android location permissions (ACCESS_FINE/COURSE_LOCATION, INTERNET)
- Request location permission on login and map init
- Fix geo_id type: use String instead of int (UUID format)
- Align share_service with API spec: remove unique_id, use share_id only
- Fix watch endpoint response: last_update instead of created_at
- Add error handling with SnackBars for geo operations
- Wrap login screen in SingleChildScrollView for keyboard handling
- Update map tile layer with userAgentPackageName for OSM
2026-05-15 17:38:56 +03:00

26 lines
942 B
Dart

// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. 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/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:family_safety_frontend/main.dart';
import 'package:family_safety_frontend/services/settings_service.dart';
void main() {
testWidgets('App loads login screen', (WidgetTester tester) async {
await tester.pumpWidget(MyApp(
settingsService: SettingsService(),
));
await tester.pump();
expect(find.text('Family Safety'), findsOneWidget);
expect(find.byType(TabBar), findsOneWidget);
expect(find.byType(ElevatedButton), findsOneWidget);
});
}