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:
+1
-6
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user