This commit is contained in:
Furkan 2022-12-29 09:03:01 +03:00
parent 448913f98c
commit acbd044b7d
9 changed files with 4 additions and 22 deletions

View File

@ -34,6 +34,8 @@ Gallery Picker is a flutter package that will allow you to pick media file(s), m
[✔] Null-safety [✔] Null-safety
You could find the code samples of the given gifs below in `/example/lib/examples` folder.
<div style="text-align: center"> <div style="text-align: center">
<table> <table>
<tr> <tr>
@ -419,4 +421,4 @@ Check out our examples!
- The [intl](https://pub.dev/packages/intl) package - The [intl](https://pub.dev/packages/intl) package
- The [bottom_sheet_bar](https://pub.dev/packages/bottom_sheet_bar) package - The [bottom_sheet_bar](https://pub.dev/packages/bottom_sheet_bar) package
- The [platform_info](https://pub.dev/packages/platform_info) 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

View File

@ -1,16 +1,3 @@
# gallery_picker_example # gallery_picker_example
A new Flutter project. This the example folder of the package. You could find the code samples of the package here and use it as a reference.
## 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.

View File

@ -134,7 +134,6 @@ class _BottomSheetExampleState extends State<BottomSheetExample> {
), ),
TextButton( TextButton(
onPressed: () { onPressed: () {
print("lol");
GalleryPicker.openSheet(); GalleryPicker.openSheet();
}, },
child: const Icon( child: const Icon(

View File

@ -44,7 +44,6 @@ class _MultipleMediasViewState extends State<MultipleMediasView> {
alignment: Alignment.centerRight, alignment: Alignment.centerRight,
child: TextButton( child: TextButton(
onPressed: () { onPressed: () {
print(pageIndex);
if (pageIndex < widget.medias.length - 1) { if (pageIndex < widget.medias.length - 1) {
pageIndex++; pageIndex++;
controller.animateToPage(pageIndex, controller.animateToPage(pageIndex,

View File

@ -35,7 +35,6 @@ class _WhatsappPickPhotoState extends State<WhatsappPickPhoto> {
} }
Future<void> initCamera() async { Future<void> initCamera() async {
print(cameraLensDirection);
cameraController = null; cameraController = null;
setState(() {}); setState(() {});
cameras ??= await availableCameras(); cameras ??= await availableCameras();

View File

@ -88,7 +88,6 @@ class PhoneGalleryController extends GetxController {
void updatePickerListener() { void updatePickerListener() {
if (GetInstance().isRegistered<PickerListener>()) { if (GetInstance().isRegistered<PickerListener>()) {
print(_selectedFiles.length);
Get.find<PickerListener>().updateController(_selectedFiles); Get.find<PickerListener>().updateController(_selectedFiles);
} }
} }

View File

@ -11,7 +11,6 @@ class PickerListener extends GetxController {
Stream<List<MediaFile>> get stream => controller.stream; Stream<List<MediaFile>> get stream => controller.stream;
void updateController(List<MediaFile> medias) { void updateController(List<MediaFile> medias) {
print("len:${medias.length}");
controller.add(medias); controller.add(medias);
} }

View File

@ -17,7 +17,6 @@ class FilesStreamBuilder extends StatelessWidget {
return StreamBuilder( return StreamBuilder(
stream: Get.find<PickerListener>().stream, stream: Get.find<PickerListener>().stream,
builder: ((context, snapshot) { builder: ((context, snapshot) {
print("snapshot:${snapshot.data}");
return builder(snapshot.data, context); return builder(snapshot.data, context);
})); }));
} }

View File

@ -19,7 +19,6 @@ class AlbumAppBar extends StatelessWidget with PreferredSizeWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
print("zort");
return TappableAppbar( return TappableAppbar(
controller: bottomSheetController, controller: bottomSheetController,
child: AppBar( child: AppBar(