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
You could find the code samples of the given gifs below in `/example/lib/examples` folder.
<div style="text-align: center">
<table>
<tr>

View File

@ -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.

View File

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

View File

@ -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,

View File

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

View File

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

View File

@ -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);
}

View File

@ -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);
}));
}

View File

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