Skip to content

Commit 578cd54

Browse files
authored
Merge pull request #2 from nusanet/bugfix/perbaikan-hasil-edit-tampak-menu-editor-nya
Bugfix - Perbaikan hasil edit tampak menu editornya
2 parents 63c5ed6 + 4ca459a commit 578cd54

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

lib/coderjava_image_editor_pro.dart

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -148,41 +148,41 @@ class _CoderJavaImageEditorProState extends State<CoderJavaImageEditorPro> {
148148

149149
@override
150150
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,
179176
),
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(
186186
child: RotatedBox(
187187
quarterTurns: rotateValue,
188188
child: imageFilterLatest(

0 commit comments

Comments
 (0)