ConsumerFlutterApp icon indicating copy to clipboard operation
ConsumerFlutterApp copied to clipboard

Add dark theme

Open diegoalvis opened this issue 4 years ago • 6 comments

diegoalvis avatar Oct 06 '20 17:10 diegoalvis

Can add the dark theme to the app by simply upgrading the flutter version and defining the theme data based on the basic theme

akhil2000mittal avatar Oct 10 '20 18:10 akhil2000mittal

@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 avatar Oct 11 '20 14:10 akhil2000mittal

@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)

diegoalvis avatar Oct 11 '20 15:10 diegoalvis

[ image ] here is my local flutter version [√] Flutter (Channel stable, 1.22.1, on Microsoft Windows [Version 10.0.19041.508], locale en-IN)

akhil2000mittal avatar Oct 12 '20 12:10 akhil2000mittal

@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

diegoalvis avatar Oct 12 '20 15:10 diegoalvis