skip to Main Content

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…

VIEW QUESTION

flutter http POST to google cloud function always returns 415

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'),…

VIEW QUESTION

Asset not Found in Flutter and Dart

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], ), //…

VIEW QUESTION

Change background color of dropdownbutton- flutter

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)…

VIEW QUESTION
Back To Top
Search