auto-claude: subtask-5-1 - Remove orientation restriction to allow all orientations

Removed SystemChrome.setPreferredOrientations call that was restricting
the app to landscape-only mode. The app now supports all device orientations
by using Flutter's default behavior.

Also fixed a minor lint warning by replacing (_, __) with named parameters.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-01-20 11:47:26 -05:00
parent 697b724f02
commit c53f4a3b2f
5 changed files with 279 additions and 6 deletions
+1 -6
View File
@@ -11,11 +11,6 @@ import 'pages/routes_page.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await SystemChrome.setPreferredOrientations([
DeviceOrientation.landscapeLeft,
DeviceOrientation.landscapeRight,
]);
runApp(
const ProviderScope(
child: PlanBLogisticApp(),
@@ -71,7 +66,7 @@ class PlanBLogisticApp extends ConsumerWidget {
),
),
),
error: (_, __) => MaterialApp(
error: (error, stackTrace) => MaterialApp(
title: 'Plan B Logistics',
theme: MaterialTheme(const TextTheme()).light(),
darkTheme: MaterialTheme(const TextTheme()).dark(),