diff --git a/README.md b/README.md index 0c8bc73..f266b8f 100644 --- a/README.md +++ b/README.md @@ -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. +
@@ -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 \ No newline at end of file +- The [permission_handler](https://pub.dev/packages/permission_handler) package diff --git a/example/README.md b/example/README.md index aff2df6..eb972b5 100644 --- a/example/README.md +++ b/example/README.md @@ -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. diff --git a/example/lib/examples/bottom_sheet_example.dart b/example/lib/examples/bottom_sheet_example.dart index f9edf9c..9dc1d61 100644 --- a/example/lib/examples/bottom_sheet_example.dart +++ b/example/lib/examples/bottom_sheet_example.dart @@ -134,7 +134,6 @@ class _BottomSheetExampleState extends State { ), TextButton( onPressed: () { - print("lol"); GalleryPicker.openSheet(); }, child: const Icon( diff --git a/example/lib/examples/multiple_medias.dart b/example/lib/examples/multiple_medias.dart index 2fc7abb..0bf8bbc 100644 --- a/example/lib/examples/multiple_medias.dart +++ b/example/lib/examples/multiple_medias.dart @@ -44,7 +44,6 @@ class _MultipleMediasViewState extends State { alignment: Alignment.centerRight, child: TextButton( onPressed: () { - print(pageIndex); if (pageIndex < widget.medias.length - 1) { pageIndex++; controller.animateToPage(pageIndex, diff --git a/example/lib/examples/whatsapp_pick_photo.dart b/example/lib/examples/whatsapp_pick_photo.dart index 1353414..f3e8ad7 100644 --- a/example/lib/examples/whatsapp_pick_photo.dart +++ b/example/lib/examples/whatsapp_pick_photo.dart @@ -35,7 +35,6 @@ class _WhatsappPickPhotoState extends State { } Future initCamera() async { - print(cameraLensDirection); cameraController = null; setState(() {}); cameras ??= await availableCameras(); diff --git a/lib/controller/gallery_controller.dart b/lib/controller/gallery_controller.dart index c28b3c8..704a51f 100644 --- a/lib/controller/gallery_controller.dart +++ b/lib/controller/gallery_controller.dart @@ -88,7 +88,6 @@ class PhoneGalleryController extends GetxController { void updatePickerListener() { if (GetInstance().isRegistered()) { - print(_selectedFiles.length); Get.find().updateController(_selectedFiles); } } diff --git a/lib/controller/picker_listener.dart b/lib/controller/picker_listener.dart index 932b01c..8fa2913 100644 --- a/lib/controller/picker_listener.dart +++ b/lib/controller/picker_listener.dart @@ -11,7 +11,6 @@ class PickerListener extends GetxController { Stream> get stream => controller.stream; void updateController(List medias) { - print("len:${medias.length}"); controller.add(medias); } diff --git a/lib/user_widgets/files_stream_builder.dart b/lib/user_widgets/files_stream_builder.dart index 0c3381d..6e32c8d 100644 --- a/lib/user_widgets/files_stream_builder.dart +++ b/lib/user_widgets/files_stream_builder.dart @@ -17,7 +17,6 @@ class FilesStreamBuilder extends StatelessWidget { return StreamBuilder( stream: Get.find().stream, builder: ((context, snapshot) { - print("snapshot:${snapshot.data}"); return builder(snapshot.data, context); })); } diff --git a/lib/views/album_view/album_appbar.dart b/lib/views/album_view/album_appbar.dart index 33a7764..2c9ab16 100644 --- a/lib/views/album_view/album_appbar.dart +++ b/lib/views/album_view/album_appbar.dart @@ -19,7 +19,6 @@ class AlbumAppBar extends StatelessWidget with PreferredSizeWidget { @override Widget build(BuildContext context) { - print("zort"); return TappableAppbar( controller: bottomSheetController, child: AppBar(