FutureBuilder flutter
I am creating an app like snapchat where the app start with camera page and before this it ask user for camera and microphone permission if the user grant both permission then the camera widget will be displayed other wise…
I am creating an app like snapchat where the app start with camera page and before this it ask user for camera and microphone permission if the user grant both permission then the camera widget will be displayed other wise…
I have a section in my Flutter app where a user can click on a date and it will retirever from the database all entries from that date, The problem is if i go into the calendar and click a…
I have a question about this error that I have in my code. So, the app should show a list of products read from firebase. This is the code placed in the screen where I want to show Products: import…
I am having an issue displaying data from a API call. the data is there because when I do hot reload the component works perfect. here is the parent component:: class _ReportsState extends State<Reports> { late DiaryFirebaseCloudStorage _diaryRepository; late var…
I am trying to push a MaterialPageRoute using Navigator.of(context).push(...);. The widget being pushed is just a Scaffold with a transparent color as its backgroundColor. However, when the screen is pushed, the transparent color is ignored and the previous screen remains…
I'm trying to create a nested map in dart : static Map<String, Map<String, dynamic>> items = new Map<String, Map<String, dynamic>>(); and add values to this map when pressing a button : Mainclass.items.addAll({ "keyname" : { "firestvalue": 100, // cghange every…
I am trying to write a function that will parse the json file and show me the related infor like Sid , Star and Approach , for now this is the json file , my main file has buttons that…
I try to call a google cloud function from flutter using POST, but it always returns 415. This is the call: http .post( Uri.parse('https://example.com/function'), headers: <String, String>{ 'content-type': 'application/json' }, body: jsonEncode(<String, String>{ "message": "test", "version": "1", }), encoding: Encoding.getByName('utf-8'),…
I am getting the "asset not found" error when I try to run my app. Here are my files. main.dart: import 'package:flutter/material.dart'; void main() { runApp(MaterialApp( home: Scaffold( appBar: AppBar( title: Text('I Am Rich'), centerTitle: true, backgroundColor: Colors.blueGrey[900], ), //…
I want to change the background color and border radius of DropDownButton, i have tried it with theme but it changes the color of dropdown not the button Theme( data: Theme.of(context) .copyWith(canvasColor: Colors.blue), child: DropdownButton( items: [DropdownMenuItem(child: Text('one'))], onChanged: (newvlaue)…