File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
open_file_mac/example/lib Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1-
2- import 'package:flutter/material.dart' ;
31import 'dart:async' ;
42
3+ import 'package:flutter/material.dart' ;
54import 'package:open_file_mac/open_file_mac.dart' ;
65
7-
8-
96void main () => runApp (MyApp ());
107
118class MyApp extends StatefulWidget {
@@ -17,13 +14,13 @@ class _MyAppState extends State<MyApp> {
1714 var _openResult = 'Unknown' ;
1815
1916 Future <void > openFile () async {
20- final result = await OpenFileMac ().open ("/Users/chendong/Downloads/R-C.jpeg" );
17+ final result =
18+ await OpenFileMac ().open ("/Users/chendong/Downloads/R-C.jpeg" );
2119 setState (() {
2220 _openResult = "type=${result .type } message=${result .message }" ;
2321 });
2422 }
2523
26-
2724 @override
2825 Widget build (BuildContext context) {
2926 return MaterialApp (
You can’t perform that action at this time.
0 commit comments