Questions tagged [flutter2.0]

For questions about Flutter UI software development kit that are specific to version 2 of the framework. Use the more generic [flutter] tag on all Flutter questions, and only add this one if your question is specific to version 2.


Resource


Source Code and Building


Community


Related tags

89 questions
2
votes
1 answer

Scrollbar in Flutter Web 2.0

I'm trying to put a Scroll Bar in my web app, the Scrollbar appeared but when I tried to move it, it didn't move. I can see the bar but I can't drag it. I can scroll using the mouse scroller wheel but not with the bar. Saw this but it didn't help.…
eqrakhattak
  • 535
  • 2
  • 7
  • 21
1
vote
1 answer

Flutter web build throws an error when main.dart file isn't in the lib root directory

I'm trying to build in production mode my flutter app for web, but I have my "main.dart" file not in the root lib directory, this cause to not be able to build my app for web, I have tried to point the path to where the "main.dart" file is,…
g14wx
  • 316
  • 1
  • 2
  • 7
1
vote
1 answer

ERROR : "Expected a value of type 'List', but got one of type 'Null'"

Recently i'm getting this Error in flutter trying to test if Excel file been created or not.the thing is that i used the same code in one of the oldest project and worked perfectly. I'm trying to use the web Device so when i press the Button the…
Hamou Ouyaba
  • 913
  • 1
  • 4
  • 17
1
vote
2 answers

unable to run flutter run after upgarding to flutter 2.8.0 from 2.5.3

This is the error Running "flutter pub get" in inventory_controller... 6.2s Using hardware rendering with device Android SDK built for x86. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering".…
bihire boris
  • 1,530
  • 3
  • 19
  • 44
1
vote
0 answers

Why the Snackbar is re-shown in the below code when I am clearly setting the condition that should show the Snackbar to false in Flutter?

I have created a custom button widget in flutter called BottomButton. Since I feel that the implementation of the custom widget is not necessary for the question, I have simply omitted it. BottomButton( text: "Tap to Login", …
1
vote
1 answer

What is the difference between onSubmitted and onEditingComplete in Flutter textField widget?

What is the difference between onSubmitted vs onEditingComplete in Flutter textField widgets? I mean, onSubmitted already passes us the value the user has entered which we can use when submitting is done. Why need an onEditingComplete property? I…
1
vote
0 answers

Why Flutter2.5 icon text field color changes from black to white?

Flutter2.2 shows the black color as icon text fields. Flutter2.5 shows the white color as icon text fields. After adding IconThemeData(), I can see the black color as icon text fields in Flutter2.5 appBarTheme: xxx( iconTheme:…
guitar-man
  • 13
  • 4
1
vote
2 answers

Dart Null-Safety - Range Error when executing dart migrate to upgrade to new null safety

I'm having problems upgrading a custom package to null safety and am not finding any solutions or even the same problem when searching on here and any other platform. When upgrading a custom package for Flutter 2.0 null-safety I'm using dart migrate…
bschmalb
  • 103
  • 1
  • 6
1
vote
1 answer

Flutter Feature Discovery Not SHowing Overlay

I had built an application and I'm trying to show feature discovery but, It is not showing discovery. Also not showing any error. Question I Referred To Solve Issue Main.dart Future main() async { WidgetsFlutterBinding.ensureInitialized(); …
Creator
  • 303
  • 4
  • 23
1
vote
2 answers

Flutter: How to fix and add a border and color to outlined button?

Can someone tell me why my code is not making the border blue, and let it have width of 3.0? This is what it looks like (L: my app, R: tutorial app): The code: class CreateRoomButton extends StatelessWidget { @override Widget build(BuildContext…
giannik28
  • 403
  • 2
  • 6
  • 14
1
vote
1 answer

Does it make sense to have required null parameter?

We can define a parameter that is required and nullable in Flutter version 2, does it make sense? Why should we have a required parameter which accepts null?
Hamed
  • 5,867
  • 4
  • 32
  • 56
1
vote
1 answer

Flutter give me CompileSwift failed with a nonzero exit code

I have updated a flutter app to Flutter version 2.2.1 • channel stable, but when it runs the flutter run on ios devices I get the following errors, what is this due to? how can i fix it? i read online and several people have these problems, the…
riki
  • 1,502
  • 5
  • 17
  • 45
1
vote
1 answer

MissingPluginException(No implementation found for method requestPermissions on channel flutter

I have the problem with flutter 2.0 and androidX project, with iOS work fine. I already check all the documentation and issues but no lucky. I'm working with those libraries in pub spec.yaml: image_picker: 0.7.5+3 permission_handler: ^8.0.0+2 the…
1
vote
1 answer

how to convert _list(QuerySnapshot> snapshot) into List in flutter 2.0

I'm trying to get a List _list but since I upgraded flutter to 2.0, I had to change my code to _list(QuerySnapshot> snapshot). that type don't have length, or elementAt like normal List type. it is possible…
1
vote
1 answer

seturlstrategy- page reload not working :Flutter web 2.0

I have used setUrlStrategy(PathUrlStrategy()); to remove # from the url, but since then my pages stopped reloading after I deploy my project on web, it shows 404 page not found. but works perfectly on localhost. if I remove…
Iftekhar
  • 51
  • 6