mirror of
https://github.com/Iconica-Development/flutter_media_picker.git
synced 2025-05-19 00:43:45 +02:00
refactor: clean up
This commit is contained in:
parent
a3fbcfdda6
commit
52a9f0502b
8 changed files with 3 additions and 22 deletions
File diff suppressed because one or more lines are too long
|
@ -20,7 +20,6 @@ class IconButtonWithText extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
return FittedBox(
|
||||
fit: BoxFit.fitHeight,
|
||||
child: Column(
|
||||
|
|
|
@ -9,7 +9,6 @@ export './src/inputs/inputs.dart';
|
|||
export './src/service/services.dart';
|
||||
export './src/media_result.dart';
|
||||
export './src/media_picker.dart';
|
||||
export './src/enums/enums.dart';
|
||||
|
||||
import 'package:flutter_media_picker/flutter_media_picker.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
|
|
|
@ -3,12 +3,11 @@
|
|||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_media_picker/src/enums/button_type.dart';
|
||||
import 'package:flutter_media_picker/src/media_result.dart';
|
||||
|
||||
/// Abstract class for inputs used by [MediaPicker].
|
||||
abstract class MediaPickerInput {
|
||||
/// The [label] is used as the title in the header and under the icon, based on which [ButtonType] you chose.
|
||||
/// The [label] is used as the title for the object in the media picker and no [widget] has been given.
|
||||
String label = 'Media Picker input';
|
||||
|
||||
/// The [widget] is the object that is used to show in the media picker where the user can click on.
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
// SPDX-FileCopyrightText: 2022 Iconica
|
||||
//
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
enum ButtonType {
|
||||
icons,
|
||||
text,
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
// SPDX-FileCopyrightText: 2022 Iconica
|
||||
//
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
export 'button_type.dart';
|
|
@ -2,9 +2,6 @@
|
|||
//
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
import 'dart:io';
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:file_picker/file_picker.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ class MediaPickerInputVideo implements MediaPickerInput {
|
|||
|
||||
final Future<Uint8List?> Function()? pickFile;
|
||||
final VideoPlayerFactory videoPlayerFactory;
|
||||
|
||||
|
||||
@override
|
||||
Widget? widget;
|
||||
|
||||
|
|
Loading…
Reference in a new issue