Skip to content

Commit

Permalink
세로모드 고정 추가 (#82)
Browse files Browse the repository at this point in the history
Co-authored-by: Jungwoo <[email protected]>
  • Loading branch information
AlphanoJack and jwson-automation authored Aug 31, 2024
1 parent d51beb0 commit e11c87f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import 'firebase_options.dart';
import 'utils/AppTheme.dart';
import 'utils/Talker.dart';
import 'package:url_strategy/url_strategy.dart';
import 'package:flutter/services.dart';

Future<void> main() async {
runZonedGuarded(() async {
Expand All @@ -24,6 +25,10 @@ Future<void> main() async {
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitDown,
DeviceOrientation.portraitUp,
]);

FirebaseCloudMessagingManager.initialize(onTokenRefresh: (token) {
talker.info('FCM Token: $token');
Expand Down

0 comments on commit e11c87f

Please sign in to comment.