@@ -10,37 +10,19 @@ class MyApp extends StatelessWidget {
10
10
@override
11
11
Widget build (BuildContext context) {
12
12
return MaterialApp (
13
- title: 'Flutter Demo' ,
13
+ title: 'Syncfusion Flutter PDF Viewer Demo' ,
14
14
debugShowCheckedModeBanner: false ,
15
15
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.
25
16
primarySwatch: Colors .blue,
26
17
),
27
- home: MyHomePage (title: 'Flutter Demo Home Page ' ),
18
+ home: MyHomePage (title: 'Syncfusion Flutter PDF Viewer Demo ' ),
28
19
);
29
20
}
30
21
}
31
22
32
23
class MyHomePage extends StatefulWidget {
33
24
MyHomePage ({Key ? key, required this .title}) : super (key: key);
34
25
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
-
44
26
final String title;
45
27
46
28
@override
@@ -70,26 +52,17 @@ class _MyHomePageState extends State<MyHomePage> {
70
52
onPressed: () {
71
53
_pdfViewerStateKey.currentState! .openBookmarkView ();
72
54
},
73
- icon: Icon (
74
- Icons .bookmark,
75
- color: Colors .white,
76
- )),
55
+ icon: Icon (Icons .bookmark)),
77
56
IconButton (
78
57
onPressed: () {
79
58
_pdfViewerController.jumpToPage (5 );
80
59
},
81
- icon: Icon (
82
- Icons .arrow_drop_down_circle,
83
- color: Colors .white,
84
- )),
60
+ icon: Icon (Icons .arrow_drop_down_circle)),
85
61
IconButton (
86
62
onPressed: () {
87
63
_pdfViewerController.zoomLevel = 1.25 ;
88
64
},
89
- icon: Icon (
90
- Icons .zoom_in,
91
- color: Colors .white,
92
- ))
65
+ icon: Icon (Icons .zoom_in))
93
66
],
94
67
),
95
68
));
0 commit comments