Skip to content

Commit

Permalink
[native_pdf_renderer] Upgrade gradlew version
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeShkurko committed Oct 31, 2019
1 parent c87e490 commit 6d1a232
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion packages/native_pdf_renderer/example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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
36 changes: 19 additions & 17 deletions packages/native_pdf_renderer/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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: <Widget>[
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: <Widget>[
Text(
'Swipe to right',
style: Theme.of(context).textTheme.title,
),
Icon(Icons.keyboard_arrow_right),
],
),
),
)),
),
),
);
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6d1a232

Please sign in to comment.