Skip to content

Commit 15ff190

Browse files
committed
Fixed linter issue
1 parent 056d330 commit 15ff190

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

open_file_ios/example/lib/main.dart

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
2-
import 'dart:typed_data';
1+
import 'dart:async';
32

43
import 'package:file_picker/file_picker.dart';
54
import 'package:flutter/material.dart';
65
import 'package:open_file_ios/open_file_ios.dart';
7-
import 'dart:async';
8-
9-
106

117
void main() => runApp(MyApp());
128

@@ -27,9 +23,7 @@ class _MyAppState extends State<MyApp> {
2723
_openPickFile() async {
2824
FilePickerResult? fileResult = await FilePicker.platform.pickFiles();
2925
if (fileResult?.files.first != null) {
30-
31-
final result =
32-
await OpenFileIOS().open(fileResult!.files.first.path);
26+
final result = await OpenFileIOS().open(fileResult!.files.first.path);
3327
setState(() {
3428
_openResult = "type=${result.type} message=${result.message}";
3529
});
@@ -40,7 +34,9 @@ class _MyAppState extends State<MyApp> {
4034
setState(() {
4135
canRequestFocus = false;
4236
});
43-
final result = await OpenFileIOS().open("/Users/crazecoder/Library/Developer/CoreSimulator/Devices/9FDE8459-AD12-4665-A0C0-FF1A5D82CF9D/data/Downloads/1.jpeg",isIOSAppOpen: true);
37+
final result = await OpenFileIOS().open(
38+
"/Users/crazecoder/Library/Developer/CoreSimulator/Devices/9FDE8459-AD12-4665-A0C0-FF1A5D82CF9D/data/Downloads/1.jpeg",
39+
isIOSAppOpen: true);
4440
// final result = await OpenFileIOS().open("/Users/crazecoder/Library/Developer/CoreSimulator/Devices/9FDE8459-AD12-4665-A0C0-FF1A5D82CF9D/data/Downloads/R-C.jpeg");
4541
setState(() {
4642
_openResult = "type=${result.type} message=${result.message}";
@@ -60,7 +56,10 @@ class _MyAppState extends State<MyApp> {
6056
mainAxisAlignment: MainAxisAlignment.center,
6157
children: <Widget>[
6258
Text('open result: $_openResult\n'),
63-
TextField(autofocus: false,canRequestFocus: canRequestFocus,),
59+
TextField(
60+
autofocus: false,
61+
canRequestFocus: canRequestFocus,
62+
),
6463
TextButton(
6564
onPressed: openFile,
6665
child: const Text('Tap to open file'),

0 commit comments

Comments
 (0)