Category "dart"

WebView into SizedBox Flutter

I would like to add a custom webview into a sizedBox in flutter... I've tried to do that but there is an error: code: @override Widget build(BuildContext c

Flutter local notification onSelectNotification can not open a new page when a local notification is clicked

I want my flutter app to open a page when a local notification is clicked. I've defined the following codes in the event listener: Navigator.push( Ccontext,

How to get widget's absolute coordinates on a screen in Flutter?

How to get widget's absolute coordinates on a screen in Flutter? Or its offset in a parent Example: import 'package:flutter/material.dart'; void main() =>

Reference to an enclosing class method cannot be extracted on refactoring

When I want to do "Extract to widget", it raises an error : "reference to an enclosing class method cannot be extracted" I know there is some variables that mu

Graph network visualisation in flutter?

I'm a newbie in flutter. Would anybody have an idea of how to plot a graph network in flutter? An example using d3js is below. I'm interested in a solution t

String xml file in Flutter

In flutter string text are directly set to the TextField widget like: new Text('Hello, How are you?') Is correct way ? or we can maintain all string in one

Change the keyboard type for a TextFormField in a Form

I have a text form that accepts letters and numbers and the keyboard changes dynamically. It's working but when I delete the code, the numeric keyboard remains

Flutter how to display a Custom Clipper when (or inside) using a Custom Scroll View

so here's the deal. I created (sort of) a custom clipper shaped like a wave inside a class called WaveClipper the wave clipper class: class WaveClipper extends

What does client-optimized mean?

Can someone explain what does this phrase mean in this sentence? Dart is a client-optimized programming language for apps on multiple platforms.

Unable to send body parameter in Dart/ Flutter multipart request

I m trying to upload image using Multipart request using Dart/ Flutter. but parameter not getting on serverside. var request = http.MultipartRequest('POST',

Flutter Dart: RegEx to extract URLs from a String

This is my string: window.urlVideo = 'https://node34.vidstreamcdn.com/hls/5d59908aea5aa101a054dec2a1cd3aff/5d59908aea5aa101a054dec2a1cd3aff.playlist.m3u8';

how to reuse previous state fields in flutter bloc pattern?

have the following. using sliding_up_panel that has body with messages and with a different view in panel content that pops up on click action from bottom bar.

Dart Multiple Constructors

Is it really not possible to create multiple constructors for a class in dart? in my Player Class, If I have this constructor Player(String name, int color) {

Flutter Onboarding Screen only one time

i am new to flutter and dart and i am trying to make an app with an onboarding screen with 3 pages and i am trying to skip the onboarding screen when the user h

The argument type 'List<DropdownMenuItem<dynamic>>' can't be assigned to the parameter type 'List<DropdownMenuItem<String>>?

Currently, I am working on a Flutter tutorial which was developed on previous versions. The error occurred once we updated to the latest version of Dart and Flu

Execution failed for task ':google_api_headers:compileDebugKotlin'

After updating to Dart 3.0 I have this error when I launch the app on Android simulator. For iOS physical device its building ok. Unfortunately can't try with A

In Flutter is it possible to increase the transparency of a Dismissible widget the further it is dismissed?

I have a Dismissible widget in my application that I drag down to dismiss. There is a requirement that the transparency of the Dismissible should increase the f

Flutter: Illustrate List of Strings with a for-Loop doesn't work

I am really confused why does this only work without the braces around the for-Loop. child: SingleChildScrollView( child: Column(

Style BottomNavigationBar in Flutter

I am trying out Flutter and I am trying to change the colour of the BottomNavigationBar on the app but all I could achieve was change the colour of the BottomNa

How to Initialize the List with the same element in flutter dart?

I have a list in dart I want to initialize the list with n number of the same element. example:- initialize the integer list with element 5 4 times. L