95,802 questions
Advice
1
vote
3
replies
104
views
what does underscore mean in flutter?
What is the underscore sign used for in flutter?
I have been using and encountering the underscore( _ ) symbol in flutter and dart without actually knowing what it means.
Is it a specific syntax that ...
2
votes
0
answers
64
views
Flutter app_links: getInitialLink() returns null on iOS when app is launched from terminated state
I'm using the app_links package to handle deep links on iOS.
Deep links work correctly when the app is:
In the foreground
In the background
However, when the app is completely terminated and ...
Best practices
1
vote
7
replies
136
views
Is there any other ways to convert a MapEntry to Map?
I'm a beginner at Dart and I was doing a DSA problem to find the frequency of numbers in a list. And I have created a map with numbers as keys and frequencies of that number as its value. And then ...
1
vote
1
answer
76
views
Flutter vector_graphics_compiler transformer causes silent OOM / timeout in GitLab CI during flutter test
I have recently migrated a large Flutter project from flutter_svg to vector_graphics to improve rendering performance.
My project contains hundreds (if not thousands) of .svg files. I am using the ...
-1
votes
1
answer
87
views
Warning "Don't use 'BuildContext's across async gaps" [duplicate]
I'm having warning because I'm using BuildContext with async function.
void login(BuildContext context) async {
bool success = await controller.login(_passwordController.text);
if (success) {
...
0
votes
1
answer
99
views
How to stop background image flashing on setState
I have, in main.dart, a statefull widget. That widget has a container that uses a decorated image to have background in the whole screen.
I created a global BoxDecoration variable, this way:
Future&...
0
votes
1
answer
69
views
Using ShaderMask to blend a LinearGradient on text with a shadow produces a visible, slightly transparent border around the text widget
I am working on a widget manipulation concept to blend a LinearGradient on text that also has a shadow complementing the gradient's arrangement.
The only problem is that I noticed a faint transparent ...
Advice
0
votes
1
replies
80
views
How to handle scrolling while dragging in flutter web
I have few nested widgets
SingleChildScrollView(
child: GestureDetector(
child: MouseRegion(
child: CustomPainter
)));
I am building an application the needs something from ...
Advice
0
votes
10
replies
272
views
How can I create a progressive blur effect in Flutter using BackdropFilter and ShaderMask?
I am trying to recreate a Figma-style progressive blur in Flutter, where the blur fades out smoothly using a vertical gradient mask.
I have a scrolling feed/list in the background, and a container ...
1
vote
0
answers
91
views
By using hid_tool package in flutter using dart language strange data is read (Android app)
I have created the following class in flutter that uses hid_tool package:
import 'dart:async';
import 'package:hid_tool/hid_tool.dart';
class ShiftDispenser {
late HidDevice _device;
late ...
1
vote
2
answers
129
views
stream_channel/MultiChannel..VirtualChannel..sink.add(msg) throws when using typed (e.g. <String>) message
I am following the example code in the API docs of the latest version, 2.1.4, with my async being on version 2.13.1 (also latest as of now).
Specifically, I am creating a MultiChannel.VirtualChannel, ...
0
votes
1
answer
139
views
i cannot see and get access to my PostgreSQL database in VS Code using Flutter
I want to connect Flutter code (one that appears automatically) to the database PostgreSQL.
So I want to get access to PostgreSQL with this package I found on pub.dev.
main.dart:
import 'package:...
0
votes
0
answers
59
views
Flutter FFI native crash (SIGSEGV/SIGBUS) with Swiss Ephemeris / Jyotish package on Android ARM64 after successful initialization
I am facing random native crashes on Android when using the jyotish Flutter package (Swiss Ephemeris based).
The crash happens even when only initializing the package, without calling any calculation ...
0
votes
0
answers
99
views
Flutter: ScrollView inside fixed-height ListView doesn't propagate scroll to parent when reaching top
I have a parent scrollable page (SingleChildScrollView or CustomScrollView)
that contains a fixed-height ListView (400px) as a table.
When the user scrolls the ListView to the top and continues ...
2
votes
1
answer
153
views
Possible to convert existing StreamController to SendPort to communicate with Isolates?
I am refactoring a Flutter class in order to run in a separate (from the UI) Isolate. The class already takes in, during construction, 2 StreamControllers for communicating its status with the caller. ...