@@ -56,7 +56,9 @@ class HomePageState extends State<HomePage> {
56
56
final doc = Document ();
57
57
setState (() {
58
58
_controller = QuillController (
59
- document: doc, selection: const TextSelection .collapsed (offset: 0 ));
59
+ document: doc,
60
+ selection: const TextSelection .collapsed (offset: 0 ),
61
+ );
60
62
});
61
63
}
62
64
@@ -258,8 +260,7 @@ class HomePageState extends State<HomePage> {
258
260
iconSize: toolbarIconSize,
259
261
controller: _controller! ,
260
262
),
261
- for (final builder in embedButtons)
262
- builder (_controller! , toolbarIconSize, null , null ),
263
+ for (final builder in embedButtons) builder (_controller! , toolbarIconSize, null , null ),
263
264
],
264
265
);
265
266
@@ -291,8 +292,7 @@ class HomePageState extends State<HomePage> {
291
292
if (! widget.platformService.isWebPlatform ()) {
292
293
// Copies the picked file from temporary cache to applications directory
293
294
final appDocDir = await getApplicationDocumentsDirectory ();
294
- final copiedFile =
295
- await file.copy ('${appDocDir .path }/${basename (file .path )}' );
295
+ final copiedFile = await file.copy ('${appDocDir .path }/${basename (file .path )}' );
296
296
return copiedFile.path.toString ();
297
297
} else {
298
298
// TODO: This will fail on web
@@ -303,8 +303,7 @@ class HomePageState extends State<HomePage> {
303
303
}
304
304
305
305
/// Callback that is called after an image is picked whilst on the web platform.
306
- Future <String ?> _webImagePickImpl (
307
- OnImagePickCallback onImagePickCallback) async {
306
+ Future <String ?> _webImagePickImpl (OnImagePickCallback onImagePickCallback) async {
308
307
// Lets the user pick one file; files with any file extension can be selected
309
308
final result = await ImageFilePicker ().pickImage ();
310
309
@@ -330,7 +329,6 @@ class HomePageState extends State<HomePage> {
330
329
// coverage:ignore-start
331
330
/// Image file picker wrapper class
332
331
class ImageFilePicker {
333
- Future <FilePickerResult ?> pickImage () =>
334
- FilePicker .platform.pickFiles (type: FileType .image);
332
+ Future <FilePickerResult ?> pickImage () => FilePicker .platform.pickFiles (type: FileType .image);
335
333
}
336
334
// coverage:ignore-end
0 commit comments