Questions tagged [flutter-material]

45 questions
0
votes
1 answer

I tried updating dart and now wall the lines are red

I can't seem to post an image yet but my entire main.dart is red including the 'package:flutter/material.dart' and other widgets.
0
votes
4 answers

User Richtext with TextSpan in container but is not its not gives proper output

I used RichText and TextSpan for my formatted string. But issue is I want long string with ... form I do some RnD, As per some solutions on google I use Expanded and Flexible widget also but not get output even when i user Expanded or Flexible…
0
votes
0 answers

When overriding the TextTheme without any changes, the text color gets updated to color white in the light theme

I want to extract the TextTheme customization in it's own class so I have a single point where I configure the text. In this class I have tried the following with the same result: var lightTextTheme =Typography().black.copyWith(); var darkTextTheme…
Răzvan Puiu
  • 671
  • 1
  • 6
  • 24
0
votes
1 answer

Container widget overflows other widgets- Flutter

This is the expected screen and the container will collapse and expand based on the text displayed and should only occupy the space left out by placing other icons. But see the flutter implemented screen. The icons are moved to the right on…
0
votes
1 answer

Can I add a title decoration to a Material Card in Flutter?

Is there a way to add a title box to a card in the Flutter Material design? So far I've got to: Card( shape: const RoundedRectangleBorder( borderRadius: BorderRadius.all(Radius.circular(20)), side: BorderSide(color: Colors.black) ), …
Tom
  • 7,269
  • 1
  • 42
  • 69
0
votes
1 answer

How to implement Popup with Flutter?

I have a Flutter app with screens rendered conditionally with an array. Anyway, I need to have a popup screen like this : If have stored all my "popup screens" in an array and rendered the main screen and the popup screen in a stack. I don't know…
Lukas Laudrain
  • 436
  • 3
  • 10
0
votes
1 answer

GetMaterialApp home widget is being called multiple times

I'm using GetMaterialApp i.e. GetX stage management. The home widget is a FutureBuilder that checks user login and shows screens accordingly. In the builder of the FutureBuilder I added a print statement and when I run the app it's being printed…
0
votes
1 answer

Restrict builder to a specific platform with a responsive framework

My application is compatible with both desktop and mobile devices. In my application, I use the responsive framework package to ensure responsiveness. Widget build(BuildContext context) { return MaterialApp( builder: (context, child) => …
Febin Johnson
  • 277
  • 1
  • 6
  • 21
0
votes
1 answer

Material Icons are taking too much time to load in flutter in android studio

When I try to add material icons in the flutter it takes a lot of time to load the suggestion pannel. How can I solve this? This is the kind of suggestion I am looking fo
0
votes
1 answer

Flutter App Keeps going back to intial route when I save changes

I am building a flutter app for Android and iOS. The challenge I am facing is that whenever I make any changes to the code and save, the app falls back to the initial route. It doesn't matter whether I use stateless or stateful widgets. My flutter…
David
  • 473
  • 1
  • 4
  • 14
0
votes
1 answer

wrong icons flutter android material

My app displays wrong icons. In my material\icons.dart shows a totally diferent name for the icon.
Venjal
  • 41
  • 8
0
votes
3 answers

TextFormField Value to TextField New Line

I have a question. I want to send the return(returnvalue1...2...3) output from TextFormField to a TextField. I want it to append each output to newline without clearing the TextField. How can I do that? Thank you for your help. TextFormField…
0
votes
1 answer

Unchecked Material Checkboxes not visible

Currently, I have to deal with a Flutter project that uses the flutter/material.dart package to display checkboxes, like so: // ... Checkbox( value: item.areaShowOnMap, activeColor: theme.colorPrimary, onChanged: (bool value){ // …
Martin Braun
  • 10,906
  • 9
  • 64
  • 105
-2
votes
3 answers

Checking if AssetImage asset path exist

How do I load AssetImage or check if it exists? The data is coming from the api, so I cannot list all the file paths as constants. As an example path maybe be 'assets/images/${card.imageType}.png' where card.inageType is a variable. ... child:…
Tremmillicious
  • 454
  • 4
  • 14
1 2
3