@@ -148,41 +148,41 @@ class _CoderJavaImageEditorProState extends State<CoderJavaImageEditorPro> {
148
148
149
149
@override
150
150
Widget build (BuildContext context) {
151
- return Screenshot (
152
- controller: screenshotController,
153
- child: Scaffold (
154
- key: scaf,
155
- backgroundColor: Colors .grey.shade400,
156
- appBar: AppBar (
157
- actions: [
158
- widget.isShowingChooseImage
159
- ? IconButton (
160
- icon: Icon (Icons .camera_alt),
161
- onPressed: () => bottomsheets (),
162
- )
163
- : Container (),
164
- TextButton (
165
- child: Text ('SAVE' ),
166
- onPressed: () {
167
- screenshotController.capture (pixelRatio: widget.pixelRatio ?? 1.5 ).then ((binaryIntList) async {
168
- final paths = widget.pathSave ?? await getTemporaryDirectory ();
169
- final file = await File ('${paths .path }/' + DateTime .now ().toString () + '.jpg' ).create ();
170
- file.writeAsBytesSync (binaryIntList! );
171
- Navigator .pop (context, file);
172
- }).catchError ((onError) {
173
- print (onError);
174
- });
175
- },
176
- style: TextButton .styleFrom (
177
- primary: Colors .white,
178
- ),
151
+ return Scaffold (
152
+ key: scaf,
153
+ backgroundColor: Colors .grey.shade400,
154
+ appBar: AppBar (
155
+ actions: [
156
+ widget.isShowingChooseImage
157
+ ? IconButton (
158
+ icon: Icon (Icons .camera_alt),
159
+ onPressed: () => bottomsheets (),
160
+ )
161
+ : Container (),
162
+ TextButton (
163
+ child: Text ('SAVE' ),
164
+ onPressed: () {
165
+ screenshotController.capture (pixelRatio: widget.pixelRatio ?? 1.5 ).then ((binaryIntList) async {
166
+ final paths = widget.pathSave ?? await getTemporaryDirectory ();
167
+ final file = await File ('${paths .path }/' + DateTime .now ().toString () + '.jpg' ).create ();
168
+ file.writeAsBytesSync (binaryIntList! );
169
+ Navigator .pop (context, file);
170
+ }).catchError ((onError) {
171
+ print (onError);
172
+ });
173
+ },
174
+ style: TextButton .styleFrom (
175
+ primary: Colors .white,
179
176
),
180
- ],
181
- brightness: Brightness .dark,
182
- backgroundColor: widget.appBarColor ?? Colors .black87,
183
- ),
184
- bottomNavigationBar: openbottomsheet ? Container () : _buildWidgetListMenu (),
185
- body: Center (
177
+ ),
178
+ ],
179
+ brightness: Brightness .dark,
180
+ backgroundColor: widget.appBarColor ?? Colors .black87,
181
+ ),
182
+ bottomNavigationBar: openbottomsheet ? Container () : _buildWidgetListMenu (),
183
+ body: Screenshot (
184
+ controller: screenshotController,
185
+ child: Center (
186
186
child: RotatedBox (
187
187
quarterTurns: rotateValue,
188
188
child: imageFilterLatest (
0 commit comments