Skip to content

Commit

Permalink
fix: block landscape mode (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-A4 authored Nov 6, 2023
1 parent d0661c0 commit 28fbf3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/bootstrap.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import 'package:app/di/di.dart';
import 'package:bloc/bloc.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
import 'package:go_router/go_router.dart';
import 'package:logging/logging.dart';
Expand Down Expand Up @@ -62,6 +63,10 @@ Future<void> bootstrap(
(context) => context.maybePop(preserveQueryParams: false);
DefaultAppBar.defaultCanPopAction = (context) => context.canPop();

await SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
]);

runApp(
EasyLocalization(
supportedLocales: supportedLocales,
Expand Down

0 comments on commit 28fbf3e

Please sign in to comment.