dart – Flutter GridView Item Selection Color Change (on tap)

I have created a GridView, and the next step I’m trying to achieve is changing the color of the container when it is tapped/ selected. When I try and do it with both Inkwell and GestureDetector, it changes the color of both containers in the row, rather than changing each one individually. I want to … Read more

flutter – Trying to play multiple audio files one by one with one audio player object. But if I don’t initalize it again before playing it gives this error dart

flutter – Trying to play multiple audio files one by one with one audio player object. But if I don’t initalize it again before playing it gives this error dart – Stack Overflow … Read more

dart – Flutter Stack Widget – SingleChildScrollView Causing Issues

My stack widget (fancy_on_boarding) was overflowing and/or getting cut off in landscape mode based on the clipping behavior. Any way to resolve so that the widget just scrolls in landscape and I don’t get an overflow error? background below: I tried to add a SingleChildScrollView as I’ve done in other widgets, but a lot was … Read more

dart – Flutter: Try to use BlocProvider with get_it and auto_route package but context don’t find provider

I try to make a login page for my app who permits to access when password and username are okay. I have some problem with my bloc provider. My application uses the auto_route package for routing, get_it for dependency injection and block to handle business logic/status. The flow is as follows: I initialize the dependencies … Read more

dart – Searchdelegates class using flutter firebase

I have a searchDelagate class…inside the class i want to diapaly some dat that comes from the collection”users”…Here actually my problem is i have two collection users and company ..i want to dispaly the data that match with the uid of another collection company..so i tried to call the function like this class SearchPage extends … Read more

dart – Which to use Positioned or Align With Stack in Flutter

You could continue using the Stack widget and lay out your widgets so it comes out the following way: And even create your own custom AppBar if needed so you can overlay them accordingly. Check the code below: import ‘package:flutter/material.dart’; const Color darkBlue = Color.fromARGB(255, 18, 32, 47); void main() { runApp(MyApp()); } class MyApp … Read more

dart – Listview filter search in Flutter

Here is a search view with auto-complete suggestions. and Easiest way to search from API To integrate source 1 : Directly drag and drop the pk_search_bar directory into your Flutter project. 2: Create a Class SearchScreen and in build > Scaffold > child: SearchBar() Create Model Class class CountryModel { String countryName; String countryCode; @override … Read more

dart – Troubles with making a Favorite page with Hive DB Flutter

Hello everyone here’s my test app and I have some problems with making a Favorite page section where you can tap on button and add the item into fav page. I’m receiving a data from API and implementing it by Listview.builder Here are some photos of how it should look like: Home page Favorite page … Read more