Skip to content

Commit 568872f

Browse files
Update UI widgets
1 parent fbc8114 commit 568872f

File tree

1 file changed

+5
-32
lines changed

1 file changed

+5
-32
lines changed

lib/main.dart

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,19 @@ class MyApp extends StatelessWidget {
1010
@override
1111
Widget build(BuildContext context) {
1212
return MaterialApp(
13-
title: 'Flutter Demo',
13+
title: 'Syncfusion Flutter PDF Viewer Demo',
1414
debugShowCheckedModeBanner: false,
1515
theme: ThemeData(
16-
// This is the theme of your application.
17-
//
18-
// Try running your application with "flutter run". You'll see the
19-
// application has a blue toolbar. Then, without quitting the app, try
20-
// changing the primarySwatch below to Colors.green and then invoke
21-
// "hot reload" (press "r" in the console where you ran "flutter run",
22-
// or simply save your changes to "hot reload" in a Flutter IDE).
23-
// Notice that the counter didn't reset back to zero; the application
24-
// is not restarted.
2516
primarySwatch: Colors.blue,
2617
),
27-
home: MyHomePage(title: 'Flutter Demo Home Page'),
18+
home: MyHomePage(title: 'Syncfusion Flutter PDF Viewer Demo'),
2819
);
2920
}
3021
}
3122

3223
class MyHomePage extends StatefulWidget {
3324
MyHomePage({Key? key, required this.title}) : super(key: key);
3425

35-
// This widget is the home page of your application. It is stateful, meaning
36-
// that it has a State object (defined below) that contains fields that affect
37-
// how it looks.
38-
39-
// This class is the configuration for the state. It holds the values (in this
40-
// case the title) provided by the parent (in this case the App widget) and
41-
// used by the build method of the State. Fields in a Widget subclass are
42-
// always marked "final".
43-
4426
final String title;
4527

4628
@override
@@ -70,26 +52,17 @@ class _MyHomePageState extends State<MyHomePage> {
7052
onPressed: () {
7153
_pdfViewerStateKey.currentState!.openBookmarkView();
7254
},
73-
icon: Icon(
74-
Icons.bookmark,
75-
color: Colors.white,
76-
)),
55+
icon: Icon(Icons.bookmark)),
7756
IconButton(
7857
onPressed: () {
7958
_pdfViewerController.jumpToPage(5);
8059
},
81-
icon: Icon(
82-
Icons.arrow_drop_down_circle,
83-
color: Colors.white,
84-
)),
60+
icon: Icon(Icons.arrow_drop_down_circle)),
8561
IconButton(
8662
onPressed: () {
8763
_pdfViewerController.zoomLevel = 1.25;
8864
},
89-
icon: Icon(
90-
Icons.zoom_in,
91-
color: Colors.white,
92-
))
65+
icon: Icon(Icons.zoom_in))
9366
],
9467
),
9568
));

0 commit comments

Comments
 (0)