I can't use flutter where condition
I'm new to Flutter. I'm trying to learn. I've drawn a staff list with API, but I need to set a condition when pulling these staff, example: I want to attract staff whose name is George. I couldn't use the…
I'm new to Flutter. I'm trying to learn. I've drawn a staff list with API, but I need to set a condition when pulling these staff, example: I want to attract staff whose name is George. I couldn't use the…
I'm fetching data from APIs in Flutter. The data come from a several APIs, so I'm using Future.wait to make it smoother. I've got this variable: late List<Cast> castMembers; and this function: Future<List<Cast>> getCast() async { List<Cast> members= []; //…
I did background color to transparent. Did elevation to 0 Did extend body to true but it only transparents only the background image and when i scroll the image is static not scrolling Future main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp();…
I have faced the issue of height related actually I am using the expansion tile widget. there is according to UI height not managed and not working so please explain to any mentor and friends or brother I want it…
I'd like to display a widget on the then-current screen when some asynchronous data comes in. However, I don't want it to be a SnackBar or a MaterialBanner, but rather my own widget with my own look and feel. The…
I've been working in Dart for a little bit and tried to make a function that returned a list of cards. I wanted each card to change colors when it was tapped and I have a listener to make sure…
I am currently working on a mobile application using Flutter. And I asked myself if it is possible to wrap my entire App in a try/catch and when some Exception occurs that I did not consider while programming show some…
Weekly increment and decrement counter on tap of buttons. How to achieve this in flutter. class DateCounter extends StatefulWidget { const DateCounter({Key? key}) : super(key: key); @override State<DateCounter> createState() => _DateCounterState(); } class _DateCounterState extends State<DateCounter> { final _inputStartFormat =…
I am trying to draw a circle with 12 segments and with Random colors in Flutter. I am using CustomPainter with drawArc method. I am check for the screen size first to ensure that the app is responsive in all…
I found an error importing package from the 'DIO' library and it's the following: Target of URI doesn't exist: from Android Studio. please see the error in the attached screenshot. I want to get rid of this red marked error.…