Category "dart"

How to expand button vertically to match the height of row in flutter

I am working on a flutter project I have a TextField and an ElevatedButton.icon in a Row. The height of TextField is higher than ElevatedButton.icon as shown in

Convert Flutter Frame Camera to android Bitmap

I'm developing a Flutter plugin for Android and iOS using the Flutter plugin camera. First I stream the frame from the plugin using this method: controller.star

Flutter CustomClipper with Stroke Border

I want to create a Widget with 2 container using a CustomClipper and add a line/stroke/border between them like: So I want a bottom border on the red colored C

How to read the Annotation fields and their values (Code Generation)

i have been struggling to get the fields from an annotation. I am using the source code generator to generate my widget from my annotation but cant seem to use

Convert an arbitrarily long hexadecimal string to a number in Dart?

I need to convert a string of 8-character hexadecimal substrings into a list of integers. For example, I might have the string 001479B70054DB6E001475B3 whi

How to set Flutter FCM Background Notification Settings

I don't have any problem with sending notifications. The only problem is that I can't set background notifications. While notification importance and icon in on

Dart Flutter The method 'init' isn't defined for the type 'OneSignal'

I'm trying to make a system of sending notifications to the phone with OneSignal. import 'package:firebase_core/firebase_core.dart'; import 'package:flutter/mat

Match child height size in a Navigator widget

I had a problem with the Navigator widget: I need to match the child widget height. My Navigator widget is inside an Expanded widget but when I change route to

Match child height size in a Navigator widget

I had a problem with the Navigator widget: I need to match the child widget height. My Navigator widget is inside an Expanded widget but when I change route to

Impossible to hot reload on VSCode

I'm trying to use hot reload on my Flutter project, but everytime I use it, I have this error: Hot reload received invalid response: {type: ReloadReport, succe

How to use Flutter to implement a button like ios virtual home button

I want to create a button can move to any position like iPhone Style (Virtual Home Button) in Flutter but I don't know any packages or any library can do it. Mo

How to use Flutter to implement a button like ios virtual home button

I want to create a button can move to any position like iPhone Style (Virtual Home Button) in Flutter but I don't know any packages or any library can do it. Mo

Refresh indicator doesn't work when list doesn't fill the whole page

I have a page the has a list with refresh indicator. When I have many elements in the list (filling the whole view and more, i.e. I can scroll), the refresh ind

Generate dynamic height horizontal listview nested in a vertical listview

I'm trying to generate a dynamic height HORIZONTAL listview that is nested inside a VERTICAL listview I'm already in the point of printing my horiztonal listvi

How do I fill Matrix4 with translation, skew and scale values in flutter?

Suppose, I have these values for a container of height 200 and width 300: scaleX = 0.9198 scaleY = 0.9198 skewX = -0.3923 skewY = 0.3923 translateX = 150 transl

SliverList inside ExpansionTile without Shrinkwrap (Flutter)

Is there any way to build a SliverList inside ExpansionTile? The reason I want to do this, I have a really large amount of data that needs to be put inside the

How can I filter a stream in Flutter?

I am new to flutter/dart and within this page, I have a list of "information resources" populating the screen with a widget I've created called InformationResou

Dart Generics - type is not a subtype

I'm getting a runtime error from a Dart generic function: Widget card = widget.cardBuilder(item); Which generates: type '(Contact) => Widget' is not a

How can I remove this gray line from ExpansionTile? (Flutter)

How can I remove this gray line from ExpansionTile in flutter? The Code ExpansionTile( title: Text( "Title", style: TextStyle

Mock a Widget in Flutter tests

I am trying to create tests for my Flutter application. Simple example: class MyWidget extends StatelessWidget { @override build(BuildContext context) {