Getting the current position of a ViewPager

I know with the Gallery widget I was able to use getSelectedItemPosition(); to retrieve the current position, however it doesnt seem ViewPager has that. I know I can setup a listener and retrieve...

Android ViewPager - Show preview of page on left and right

I'm using Android's ViewPager. What I want to do is to show a preview of the page on both the left and the right. I've seen where I can use a negative pageMargin to show a preview of the right...

swiper pagination brakes after page change on jquery mobile

I'm using iDangerous Swiper library to display a mobile swipe touch gallery in conjunction with Jquery Mobile framework. It works fine except that if I leave the index page (where the gallery is)...

GridLayoutManager - how to auto fit columns?

I have a RecyclerView with a GridLayoutManager that displays Card Views. I want the cards to rearrange according to the screen size (the Google Play app does this kind of thing with its app...

Flutter: Routing to widgets from a Drawer

Is there an example on how to create a draw app & reuse widgets occupying the screen? Yes I know there is an example in the gallery demo app. However that's a bit cheeky because that sample...

Using SafeArea in Flutter

I am trying to understand the SafeArea widget in Flutter. SafeArea code added to Flutter Gallery app here in github show top:false and bottom:false everywhere. Why do these need to be set false...

flutter / dart error: The argument type 'Future<File>' can't be assigned to the parameter type 'File'

I'm trying to build my first mobile application with flutter and firebase. When I try to display and store a photo I have the following issue : error: The argument type 'Future' can't be assigned...

how add image to firestore in flutter image picker

I want add photo to firestore. Can you please tell me how to do that? I am using image picker to pick photo in my flutter app. My code is below import 'package:flutter/material.dart'; import...

Fastest Way To Display 100 or more images in Flutter

The purpose of this question is to find the best way to display a lot of images (20 or more) from the gallery. I need to display all the photos on the on the device. As you can see there could be...

flutter: no refresh indicator when using RefreshIndicator

I added the RefreshIndicator to my page, but there is no indicator visible when pull to refresh. The code is below: class HomePage extends StatefulWidget { HomePage({Key key, this.title}) :...

fitvids is adding padding-top to youtube video as inline important

I'm using a youtube embed plugin via wordpress to insert youtube videos. They work fine on some pages, but in of my widget areas the plugin adds an inline element of padding-top: 50% to the div...

Interactively deforming a polygon in matplotlib

I would like to implement something like MATLAB's drawfreehand in Python. I have something that is similar below where the user draws a poly gone which is then simplified using Shapely and then...

How to edit or delete image after upload image in flutter

I've one page called BSP_LICENSE_PAGE and BUSINESS DETAILS page so here I am uploading an image at the BSP_LICENSE_PAGE and after uploading an image on that page it will go to the BUSINESS_DETAIL...

How do I set up correctly cloudinary for Netlify CMS?

I'm trying to set up Cloudinary in for my Gatsby.js blog using Netlify.cms What I want is to be able to have a widget in the CMS that allows me to select multiple images to add to a "gallery"...

Issue loading assets into flutter project

I'm trying to load a TFLite model into flutter but I'm getting the exception "failed to load model". I've loaded the asset through the yaml, imported the TFLite plugin and made sure the file path...

How can I select and upload Multiple images in Flutter

I tried to find how to select and upload multiple images in flutter but most of the plugins are not working or I did not understand them well. I found little application but it selects and upload...

White flash when image is repainted [flutter]

I'm trying to build a grid of images with a given width and height, wrapping them inside Containers and using fit: BoxFit.fill to be able to set a border if the image is selected (i don't care to...

Flutter Image Picker Crash

I want to ask if you ever encounter the app being crash right after selecting an image from the gallery/camera using image_picker plugin version 0.6.3+4 on Android? Already searching for an answer...

Flutter: Firebase storage download url

I am new to Flutter and I am trying to make a wallpaper app where I use Firebase to store my images. The app retrieves images from Firebase and the user can share and download the images to the...

Flutter TFLite Error: "metal_delegate.h" File Not Found

I am trying to use the Tensorflow Lite ML Model with my project, and, unfortunately, I face an error while running my project: ↳ ** BUILD FAILED ** Xcode's output: ↳ ...

How to test showDialog content in flutter?

is there a way to test the content within a show dialog? I am trying to do BDD in the project, The following is the scenario: As a User, I would like to add a photo or select one from the gallery...

'package:flutter/src/paintings/_network_image_io.dart':Failed assertion: line 25 pros 14: 'url != null': is not true.StreamBuilder

I am trying to build a social media app using flutter, i have created an sign in page and login page in sign in page it takes userAvatar, Username,Useremail,UserPassword too . when clicking on...

Flutter Image_Picker doesn't pick image from gallery and return to app

Here is a what's happening : I'm trying to upload an image from gallery to my app on iOS simulator. Image Picker opens the gallery but can't select an image and return to app. Here's my simple...

Error: Getter not found: widget in flutter

i want to ask about flutter, i can't solve the code, i get the data from login and i want to put in the tuple2, how to push username from login to tuple2 ? any one can help me ? this my code from...

Full Wordpress Post html, scripts and css without Theme Header, Footer, Sidebar

My ultimate goal is to consume the posts stored in a WordPress site from a mobile app (in React Native which shows the post inside a WebView component), and to do that I need to somehow get the...

file_picker - onPressed does not delete a card neither refresh the view

I am using File_Picker.dart I am having an issue with one of the function I have written. When I press on the icon delete, the record is not deleted, and the screen is not refreshed. What I mean...

lateinitializationerror field imageFile has not been initialized

I am trying to upload an image from the gallery in flutter web project. However when I click on the upload button, I get an error "======== Exception caught by widgets library...

Flutter iOS App Crashing in App Store Review but not on Testflight devices

I have developed an app with Flutter and it is currently on the App Store, however, for over a week I have been trying to submit an app update and keep getting the response from the review team...

'ImagePickerCubit' doesn't conform to the bound 'BlocBase<ImagePickerState>' of the type parameter 'B'

I'm getting an error trying to create a BlocBuilder in my app: "'ImagePickerCubit' doesn't conform to the bound 'BlocBase' of the type parameter 'B'. Try using a type that is or is a subclass of...

(Flutter) CognitoUserSession is not valid because idToken is null

I am using AWS Cognito and Flutter framework to build an app. The cognito suddenly is not working when I changed the layout(?) of the app, please help me out! When I first built the app I made it...