Skip to content

Commit

Permalink
Improvements for Flutter 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
YuliaGrigorieva committed Dec 30, 2019
1 parent 1427bc5 commit c152d9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions audio_call/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
org.gradle.jvmargs=-Xmx1536M

android.enableR8=true
6 changes: 2 additions & 4 deletions audio_call/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ GetIt getIt = GetIt.instance;

void main() {
setupLocator();

PushService();

runApp(MyApp());
PushService();
}

void setupLocator() {
Expand All @@ -42,6 +40,7 @@ class MyApp extends StatelessWidget {

//android only
navigateToIncomingCallIfNeeded() async {
WidgetsFlutterBinding.ensureInitialized();
bool navigate = await NotificationsAndroid.didNotificationLaunchApp();
if (navigate) {
NotificationsAndroid.cancelNotification();
Expand All @@ -61,7 +60,6 @@ class MyApp extends StatelessWidget {

@override
Widget build(BuildContext context) {
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
return MaterialApp(
title: 'Audio call',
theme: ThemeData(
Expand Down

0 comments on commit c152d9c

Please sign in to comment.