File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import 'package:netshare/entity/shared_file_entity.dart';
1111import 'package:netshare/provider/file_provider.dart' ;
1212import 'package:netshare/ui/common_view/empty_widget.dart' ;
1313import 'package:netshare/ui/list_file/file_tile_upload.dart' ;
14- import 'package:netshare/ui/send/file_type_chooser.dart' ;
1514import 'package:netshare/util/extension.dart' ;
1615import 'package:netshare/util/utility_functions.dart' ;
1716import 'package:path/path.dart' as path;
@@ -248,26 +247,9 @@ class _SendWidgetState extends State<SendWidget> {
248247 void _pickFile () async {
249248 FileType type = FileType .any;
250249 if (Platform .isIOS) {
251- // asking pick file or media
252- showModalBottomSheet (
253- showDragHandle: true ,
254- context: context,
255- shape: const RoundedRectangleBorder (
256- borderRadius: BorderRadius .vertical (top: Radius .circular (20 ))),
257- builder: (context) =>
258- FileTypeChooser (
259- onSelectedType: (selectedType) {
260- if (selectedType == 0 ) {
261- type = FileType .media;
262- }
263- Navigator .pop (context);
264- _processPickingFile (type);
265- },
266- ),
267- );
268- } else {
269- _processPickingFile (type);
250+ type = FileType .media;
270251 }
252+ _processPickingFile (type);
271253 }
272254
273255 void _processPickingFile (type) async {
You can’t perform that action at this time.
0 commit comments