Category "dart"

Unable to load asset image (Flutter)

I'm repeatedly having the following exception in terminal while trying to add an asset image in the appBar of my Flutter application (running on an Android emul

Flutter Dio HTTPS Certificate Validation Ignoring onBadCertificate - CA Cert Problem?

I've run into a bit of a quandary. I'm writing a client/server application. The frontend is in Flutter and uses the Dio http package, the backend is Java. The b

Send Email for SMTP wtih Mailer/Mailer2 in Dart

i have the next problem whe send a mail for smtp Dart VM version: 2.1.0-dev.6.0 (Thu Sep 27 09:51:34 2018 +0200) on "macos_x64" pubspec.yaml environment:

How to save Base64 String to file and view it using Flutter

I need to download and view file (if possible, for Image, PDF, etc) using Flutter. My problem is, the file that I want to download is Base64 String. How can I

Flutter error - Gradle task assembleDebug failed with exit code -1

I'm new to flutter. I just created a new project in flutter and have not even altered the code. And when I run the code I get the following error. Launching li

dart:ui:1: Error: Not found: dart:ui. flutter/dart:

When I start a debugging session (pressing F5) I receive the following messages: dart:ui:1: Error: Not found: dart:ui. Exited (sigterm) There is no indicatio

Flutter - Adding Container (widget) in GridView when click a button?

I wanted to add a container widget in the GridView when a button is clicked. I was able to do this with the column widget but could not do it with GridView. im

Unable to overwrite a Dart/Flutter value - setting today's date correctly on pressing button

apologies for a simple question but I just started my Dart/Flutter hobby and ran into the following issue: I wanted a simple App that has a defined end date ("d

Remove the spaces between Gridview in Flutter

I want to remove the spaces between gridview children. I will provide an image of what I need and what below respectively. I used the GridView() by the way. Gr

Flutter - Lines between containers

I made a Flutter page but I have 2 lines that I don't know how to hide. This is my piece of code: return Column(children: <Widget>[ Stack( alignment

App not returned to portrait mode in full screen mode

I'm trying to put an App in full screen mode, but when I return to portrait mode, the full screen mode continues Widget build(BuildContext context) { MediaQ

Remove space between widgets in row flutter

I need to remove the space between two or more Text widgets in a Row. This is the code using a Row Row( mainAxisAlignment: MainAxisAlignment.start

When should I use a FutureBuilder?

I was wondering when I should use the future builder. For example, if I want to make an http request and show the results in a list view, as soon as you open th

Why am I getting errors while adding launcher icon in flutter project?

So, I am trying change the default flutter launcher icon with my one. I am using the flutter_launcher_icons: ^0.9.2 from pub.dev. The code in pubspec.yaml: depe

How to refresh an AlertDialog in Flutter?

Currently, I have an AlertDialog with an IconButton. The user can click on the IconButton, I have two colors for each click. The problem is that I need to close

Error: NoSuchMethodError: The getter 'sessionToken' was called on null

Hello fellow programmers! I am starting in the world of Flutter programming. I am following a course on Udemy, the questions are never answered by the teacher a

Persisting AppBar Drawer across all Pages Flutter

I am trying to create a uniform drawer that is accessible across all pages in my app. How do I make it persist throughout all these pages without having to recr

FirebaseOptions cannot be null when creating the default app

I am trying to try a sample project in Flutter integration email and google based login, and planning to use firebase initialisation for doing it while I have f

Problem converting FirebaseAuth.instance.currentUser to Future in Flutter FutureBuilder

I am new to flutter and have taken this course which uses an older version of FirebaseAuth that returns FirebaseAuth.instance.currentUser() as future to Future

Force ListView to shrink to contain children

The most similar question I could find was 'how to create a row of scrollable text boxes or widgets in flutter inside a ListView?', however their solution was j