ConsumerFlutterApp
ConsumerFlutterApp copied to clipboard
Add dark theme
Can add the dark theme to the app by simply upgrading the flutter version and defining the theme data based on the basic theme
@diegoalvis while building it only showing white screen and an error is shown up
[ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: NoSuchMethodError: The getter 'isNotEmpty' was called on null.
@akhil2000mittal can you give more details about the error? I'd
Here is my local flutter version running in Android Studio 4.1
[✓] Flutter (Channel stable, 1.22.1, on Mac OS X 10.15.4 19E287, locale en-GB)
[
]
here is my local flutter version
[√] Flutter (Channel stable, 1.22.1, on Microsoft Windows [Version 10.0.19041.508], locale en-IN)
@akhil2000mittal issue seems to be related to null safety call at my_address_page.dart
class line 83
child: cityList?.isNotEmpty != true
I've added a null check before it would be fix the problem, let me know if it works since I cannot reproduce the issue.
I also suggest to clean up the project and run flutter upgrade
command due null safety call was changed in the latest version of flutter sdk