Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2021-04-23 06:47:45 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
07ee9061fcd0024fed4745727f282db08d379407
07ee9061
1 parent
7ea1c572
Add dark mode
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
demo/lib/main.dart
demo/lib/main.dart
View file @
07ee906
...
...
@@ -14,17 +14,25 @@
* limitations under the License.
*/
import
'package:flutter/foundation.dart'
;
import
'package:flutter/material.dart'
;
import
'app.dart'
;
void
main
(
)
{
debugDefaultTargetPlatformOverride
=
TargetPlatform
.
fuchsia
;
runApp
(
MaterialApp
(
runApp
(
App
());
}
class
App
extends
StatelessWidget
{
@override
Widget
build
(
BuildContext
context
)
{
const
scrollbarTheme
=
ScrollbarThemeData
(
isAlwaysShown:
true
,
showTrackOnHover:
true
);
return
MaterialApp
(
theme:
ThemeData
.
light
().
copyWith
(
scrollbarTheme:
scrollbarTheme
),
darkTheme:
ThemeData
.
dark
().
copyWith
(
scrollbarTheme:
scrollbarTheme
),
title:
'Flutter PDF Demo'
,
home:
MyApp
(),
),
);
);
}
}
...
...
Please
register
or
login
to post a comment