Category "dart"

flutter dynamic links open web page when app is not installed

So, I want to redirect user to my web app created in flutter with specific item id when user don't have mobile application installed Here is my code for create

Make child elements active

I have a code that can be used to filter cars by country of manufacture. The code is structured like this: I put the name of the country with a checkbox in the

Android Studio shortcut keys for windows, linux and mac

Android Studio shortcut key for Windows, Linux and Mac. For example in windows: Run -> Shift + F10 Debug -> Shift + F9 Any others similar to this? What ar

How to retrieve the value of a listener passed to a Stream?

Stream<int> get ints async* { yield 100; } Future<int> foo(int i) async { print(i); return 0; } void main() { final subscription = int

Call AppLocalizations’ method through regex

I’m trying to build an ItemList in flutter that would call the AppLocalizations.of(context) with the methods value01, value02, value03. Example of arbFile

I want to be able to have multiple widgets in a page, it isn't working though. I want to have containers like the image below. It only allows me text?

This is the code below, please much appreciated if you can at least try. thank you | I am trying to create an app where I can have multiple widgets in one page.

Flutter Amplify - Cannot run appsync code gen for existing api

I have an existing AppSync API that I need to use in a new flutter app. After initializing amplify in my project, i run the command "amplify add codegen --apiI

Flutter null safety plugin_platform_interface

I have this error, Error: Cannot run with sound null safety, because the following dependencies don't support null safety: - package:plugin_platform_interface

Allowing null and asserting it's not - flutter framework

I came across this file https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/widgets/widget_span.dart and on line 98, I find this strange tha

Automatically upgrade a dart package

I have a package on github and it is been used in two of my projects, but every time I make a change to the package I have to run flutter pub upgrade on both pr

Firebase Realtime database filter by child list content

I have the following Firebase Realtime database products data { "-N1OHKTcbZ1h1kJQYSW-": { "images": [ "image1", "image11" ], "name": "

I am trying to run my flutter app and I am getting these errors?

here is the error message The current Dart SDK version is 2.13.4. Because test >=1.16.0-nullsafety <1.16.0-nullsafety.8 requires SDK version >=2.10.0-0

How to navigate to new page using flutter?

I want to click each navigation item and direct it to another activity. I actually want to show the list view of 'now playing movie'. When I click that drawer i

How to set a text from parsed json variable in Flutter

I have a problem with parsed JSON in Flutter-Dart. Actually, there is no problem, but there is a method which I don't know. I'm getting data from a PHP server a

Empty Body HTTP Post request Flutter

I am trying to send a Post request but the body of the request is meant to be empty and I have tried the endpoint on postman with an empty body and it works. Bu

Set and get Image in objectbox

I want to set and get image from local storage, but I have no idea how to do this.

LateInitializationError: Field '_instance@141084504' has not been initialized

When using getX and Flutter I get following error: LateInitializationError: Field '_instance@141084504' has not been initialized This is the code: import 'dart:

Argument type 'String?' cannot be assigned to parameter type 'String', Triggering Dart's Null Safety either way

In this current snippet I have declared notification to be nullable but get an null safe error for the if loop's notification.body and notification.title. Here'

Can't watch object instance with Riverpod

In a Flutter web project, I'm having this issue with Riverpod: Consumer( builder: (context, watch, child) { final om=watch(human); return Text(om.na

How to use the data from different model and context?

I made the small app, and designed like this: return MultiProvider( providers: [ ChangeNotifierProvider(create: (context) => AModel()),