Category "flutter"

"error: cannot find symbol" when building for Android in flutter

I keep getting this error when trying to build for android in my flutter app. This all happened when i added firebase messaging version 7.0.3. Even after removi

Project not connecting to real time database - flutter

I am having a problem with real time database not working, I copied a project from GitHub and made a new project in firebase with my app ID, added the JSON file

How to give Flutter SDK Path in Android Studio on Mac os, How to update Flutter SDK path in MACOS?

I have installed the Android studio and the plugin's DART,FLUTTER to kickstart the flutter but as i am not able to give path of sdk while creating my very first

DioError [DioErrorType.DEFAULT]: Converting object to an encodable object failed: Instance of 'FormData'

I'm new in Flutter. When i try to upload data to the server i faced some problems like: 1.NoSuchMethodError: The getter 'friendsList' was called on null 2.DioE

How can I get the size of the Text widget in Flutter

I've painted a shape for the background of my content of Text. I want the background autoscale the Text, even the softWrap being true. So, I need to get the

How to change ListTile data with mobx without rebuilding the whole page #Flutter

I am learning the Flutter state management with mobx, and I want to change the context of the dynamic listtile without rebuilding the whole page, I tried observ

I am trying to use flutter Isolate with database data. But it's throwing an error. I don't know why is it happening?

I'm using the hive database. My code is: HiveStocktaking? stocktaking = _database.getStocktakingById(_stocktakingId); StocktakingStats stocktaki

How to set a default value for an object in json serialisable?

I want to set a default value for AvailableService. It straight forward enough with primitives. How would I do it with a custom Object class Submenu extends Equ

How do I refresh identity token before it gets expired using flutter google_sign_in plugin for android

I am integrating Google Sign In Auth with my App using google_sign_in flutter plugin. It is working all fine except the idToken expires after an hour. Just befo

I cannot convert resized Image object to Base64 string in Dart

I want to resize Image received form imagepicker in Flutter and send it to database in base64 format. import 'package:flutter/material.dart'; import 'package:ht

border radius not apply inside container widget

Border radius not apply inside child Container. Tried with SizedBox & Stack widget. I need border view inside container. Scaffold( appBar: AppBar( ti

From Bottom Sheet to full screen Scaffold in Flutter

I would like my app have a model bottom sheet. The bottom sheet is shown only when user click a button. The bottom sheet first take up around 0.5 or less of the

I want to change the TextStyle of the items appear in DropdownSearch which comes under dropdown_search package in flutter

Transform.scale( scale: 0.91, child: DropdownSearch( validator: (v) => v == null ? "required field" : null, hint: "Select a country", dropdownSearchDecoratio

'streamChatState != null': You must have a StreamChat widget at the top of your widget tree

I am new to flutter and im trying to run a chat app with getstream chat api and firebase. I keep running into an error every time i try to sign in or sign up Sc

Is there a way to load async data on InitState method?

I'm a looking for a way to load async data on InitState method, I need some data before build method runs. I'm using a GoogleAuth code, and I need to execute bu

How to show date picker on the onclick of text field instead of keyboard in flutter?

Wish to show date picker when clicking on the TextFormField instead of the keyboard. I have tried using GestureDetector but not working as I expected. DateTim

Why loadInitTopStory method called after calling loaded state in flutter?

HackerNewsLoadedState is called before HackerNewsLoadingState and it loads all data from API but does not integrate to _topStories list as well as store data to

Unable to send SMS using telephony

I have been trying to send SMS using telephony by following the youtube tutorial https://www.youtube.com/watch?v=X4yFdl3o1Lg. However, no message is being sent

Flutter CachedNetworkImage errors: (CacheManager: Failed to download file) and (SocketException or HttpException)

I'm using the cached_network_image library. If I set it up like this: void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Wi

No Material widget found which widget is inside of Scaffold

The following assertion was thrown building IconButton(Icon, padding: EdgeInsets.all(8.0), dirty): No Material widget found. But you'll see from the code below