Category "flutter"

Stringbuffer access by index or range

TLDR: I am looking for a datastructure with the properties of a string buffer that I can access by index in dart. Long version: I need the properties of Stringb

Flutter Doctor shows problem with GTK 3.0 for CentOS Linux 7 running on Doctor

Goal: Compile and run flutter examples emulating Linux Desktop on CentOS 7 docker container (Note: Can't use snapd - not supported within Docker) Installed m

How to show Loading Indicator in WebView Flutter?

I want to show Loading first before the web view data displayed on the screen. How can do that? This is my code: class WebDetailPage extends StatelessWidget {

Prevent a NestedScrollView from scrolling

I have a widget that is a NestedScrollView and some text in the body. There are cases where I want to "lock" the user and not allow him to scroll. I have tried

Unhandled Exception: DioError PONSE]: Http status error [500]

I made FormData use the dio package to upload images to the database, but my compilation was running "flutter run", an error appeared. After I see the error th

How to replace the bundled Dart SDK in Flutter to run natively on Apple Silicon (ARM64)?

Dart SDK officially supports ARM64 and as of now, 2.14.2 is the latest (stable) Dart SDK that has support for ARM64. Though it was the same version that was bun

I'm trying use flutter svg, but load with black svg

I'm trying to use Flutter SVG dependency, i put in the svg in assets, set in pubspec.yaml, and set in my widget, but, the svg load with black container I've al

Unhandled Exception: SqliteException(1): no such table: main.checkLists, SQL logic error (code 1) [ In Moor]

I have found most people solved this issue simply by cleaning and re building their flutter databses by handling migrations in Moor. However, I have done the sa

Initialize Dio with persistent cookie at the start of the program

I'm using Dio in my app and I want it to save cookies. It turns out I have to download three additional packages to do that: cookie_jar, dio_cookie_manager and

flutter build apk installing platform-tools repeatedly

I have installed flutter and android-SDK ( without android studio ) on windows-10. Installation completed successfully and everything is fine and no errors in w

I'm creating and validating a dynamic form in Flutter, but when I change the page and return to the previous page I get an error. how can i solve

It works in release mode but I get an error in debug mode class UrunHizmetWidget extends StatefulWidget { int index; final state = _UrunHizmetWidgetState();

Cannot access copyWith method on freezed class

I have a freezed class and somehow I cannot access copyWith method. What is my mistake? Class: @freezed class LoginState with _$LoginState { const factory Lo

flutter: how to change current date and time from my app

Flutter or kotlin or Java: How to change the current device date and time from my app. without going to device settings. My phone time is now 6:45 and I want to

How to get click and change debug text to dev top right corner red debug banner?

I'm trying to change the name of that banner "debug" to "dev", "stage", "prod". programmatically I want to do some action on the click of that debug banner. I

Flutter ThemeData Primary color not changing from theme when trying to add a primary color

Im following the BMI Calculator app from the London App Brewery on LinkedIn Learning. when attempting to set the primaryColor to red, my emulator still shows th

flutter-how to download file with inappwebview

I want to use inappwebview to download files on a website, but when I try the code available at https://blog.codemagic.io/inappwebview-the-real-power-of-webview

iOS Observatory not discovered after 30 seconds. Error launching application on iPhone

I'm unable to debug a freshly created app on physical iOS devices when pubspec dependencies reach a certain size, because it causes the "waiting for observatory

How do you combine two Finders in a Flutter widget test?

Using package:flutter_test, I can create a finder that finds widgets with a key: expect(find.byKey(const ValueKey('counter')), findsOneWidget); or by text: exp

How to remove an animation in Flutter?

I would like to remove an animation and just print the result but I don't know how to remove the animation from this result Here is where the result is: onPress

Text label that explains what a certain button in the app would do

I need to create a text label component that will act as an in-app tutorial explanatory label in Flutter. This text label should show up above a button explaini