init
This commit is contained in:
parent
448913f98c
commit
acbd044b7d
@ -34,6 +34,8 @@ Gallery Picker is a flutter package that will allow you to pick media file(s), m
|
||||
|
||||
[✔] Null-safety
|
||||
|
||||
You could find the code samples of the given gifs below in `/example/lib/examples` folder.
|
||||
|
||||
<div style="text-align: center">
|
||||
<table>
|
||||
<tr>
|
||||
@ -419,4 +421,4 @@ Check out our examples!
|
||||
- The [intl](https://pub.dev/packages/intl) package
|
||||
- The [bottom_sheet_bar](https://pub.dev/packages/bottom_sheet_bar) package
|
||||
- The [platform_info](https://pub.dev/packages/platform_info) package
|
||||
- The [permission_handler](https://pub.dev/packages/permission_handler) package
|
||||
- The [permission_handler](https://pub.dev/packages/permission_handler) package
|
||||
|
@ -1,16 +1,3 @@
|
||||
# gallery_picker_example
|
||||
|
||||
A new Flutter project.
|
||||
|
||||
## Getting Started
|
||||
|
||||
This project is a starting point for a Flutter application.
|
||||
|
||||
A few resources to get you started if this is your first Flutter project:
|
||||
|
||||
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
|
||||
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
|
||||
|
||||
For help getting started with Flutter development, view the
|
||||
[online documentation](https://docs.flutter.dev/), which offers tutorials,
|
||||
samples, guidance on mobile development, and a full API reference.
|
||||
This the example folder of the package. You could find the code samples of the package here and use it as a reference.
|
||||
|
@ -134,7 +134,6 @@ class _BottomSheetExampleState extends State<BottomSheetExample> {
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
print("lol");
|
||||
GalleryPicker.openSheet();
|
||||
},
|
||||
child: const Icon(
|
||||
|
@ -44,7 +44,6 @@ class _MultipleMediasViewState extends State<MultipleMediasView> {
|
||||
alignment: Alignment.centerRight,
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
print(pageIndex);
|
||||
if (pageIndex < widget.medias.length - 1) {
|
||||
pageIndex++;
|
||||
controller.animateToPage(pageIndex,
|
||||
|
@ -35,7 +35,6 @@ class _WhatsappPickPhotoState extends State<WhatsappPickPhoto> {
|
||||
}
|
||||
|
||||
Future<void> initCamera() async {
|
||||
print(cameraLensDirection);
|
||||
cameraController = null;
|
||||
setState(() {});
|
||||
cameras ??= await availableCameras();
|
||||
|
@ -88,7 +88,6 @@ class PhoneGalleryController extends GetxController {
|
||||
|
||||
void updatePickerListener() {
|
||||
if (GetInstance().isRegistered<PickerListener>()) {
|
||||
print(_selectedFiles.length);
|
||||
Get.find<PickerListener>().updateController(_selectedFiles);
|
||||
}
|
||||
}
|
||||
|
@ -11,7 +11,6 @@ class PickerListener extends GetxController {
|
||||
Stream<List<MediaFile>> get stream => controller.stream;
|
||||
|
||||
void updateController(List<MediaFile> medias) {
|
||||
print("len:${medias.length}");
|
||||
controller.add(medias);
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,6 @@ class FilesStreamBuilder extends StatelessWidget {
|
||||
return StreamBuilder(
|
||||
stream: Get.find<PickerListener>().stream,
|
||||
builder: ((context, snapshot) {
|
||||
print("snapshot:${snapshot.data}");
|
||||
return builder(snapshot.data, context);
|
||||
}));
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ class AlbumAppBar extends StatelessWidget with PreferredSizeWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
print("zort");
|
||||
return TappableAppbar(
|
||||
controller: bottomSheetController,
|
||||
child: AppBar(
|
||||
|
Loading…
x
Reference in New Issue
Block a user