diff --git a/packages/native_pdf_renderer/example/android/build.gradle b/packages/native_pdf_renderer/example/android/build.gradle index 739483cf..4b0ebeef 100644 --- a/packages/native_pdf_renderer/example/android/build.gradle +++ b/packages/native_pdf_renderer/example/android/build.gradle @@ -6,7 +6,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:3.4.1' + classpath 'com.android.tools.build:gradle:3.5.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } diff --git a/packages/native_pdf_renderer/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/native_pdf_renderer/example/android/gradle/wrapper/gradle-wrapper.properties index 7e4309ea..7fbba66b 100644 --- a/packages/native_pdf_renderer/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/native_pdf_renderer/example/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Tue Jul 09 11:34:31 YEKT 2019 +#Wed Aug 21 11:09:38 YEKT 2019 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip diff --git a/packages/native_pdf_renderer/example/lib/main.dart b/packages/native_pdf_renderer/example/lib/main.dart index 2b57b312..dd3da8e8 100644 --- a/packages/native_pdf_renderer/example/lib/main.dart +++ b/packages/native_pdf_renderer/example/lib/main.dart @@ -40,20 +40,21 @@ class ExampleApp extends StatelessWidget { }, ), bottomNavigationBar: BottomAppBar( - child: Padding( - padding: EdgeInsets.all(16), - child: Row( - mainAxisSize: MainAxisSize.max, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Text( - 'Swipe to right', - style: Theme.of(context).textTheme.title, - ), - Icon(Icons.keyboard_arrow_right) - ], + child: Padding( + padding: EdgeInsets.all(16), + child: Row( + mainAxisSize: MainAxisSize.max, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + 'Swipe to right', + style: Theme.of(context).textTheme.title, + ), + Icon(Icons.keyboard_arrow_right), + ], + ), ), - )), + ), ), ); } @@ -102,10 +103,11 @@ class ImageLoader extends StatelessWidget { if (storage.pages.containsKey(pageNumber)) return storage.pages[pageNumber]; final page = await document.getPage(pageNumber); final pageImage = await page.render( - width: page.width * 2, - height: page.height * 2, - format: PDFPageFormat.JPEG, - backgroundColor: '#ffffff'); + width: page.width * 2, + height: page.height * 2, + format: PDFPageFormat.JPEG, + backgroundColor: '#ffffff', + ); await page.close(); storage.pages[pageNumber] = pageImage; return pageImage;