flutter_datetime_picker icon indicating copy to clipboard operation
flutter_datetime_picker copied to clipboard

Error on Flutter 1.24.0-10.2.pre

Open KarimAbdo opened this issue 5 years ago • 7 comments

Hi guys, I was testing the latest version of flutter and found out this issue

For the new Flutter version(1.24.0-10.2.pre), you need to change ThemeData inheritTheme = Theme.of(context, shadowThemeOnly: true); to ThemeData inheritTheme = Theme.of(context);

error:

../../sdks/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_datetime_picker-1.4.0/lib/flutter_datetime_picker.dart:215:48: Error: No named parameter with the name 'shadowThemeOnly'.
    ThemeData inheritTheme = Theme.of(context, shadowThemeOnly: true);  

KarimAbdo avatar Dec 01 '20 11:12 KarimAbdo

Same Issue, thank you for the workaround

lukee1234 avatar Dec 01 '20 21:12 lukee1234

Same Issue

dibadibadiudiu avatar Dec 04 '20 07:12 dibadibadiudiu

Me too..

albellulo avatar Dec 07 '20 16:12 albellulo

I had to navigate to .pubdartlang.org -> flutter_datetime_picker and manually modify ThemeData inheritTheme = Theme.of(context, shadowThemeOnly: true); to ThemeData inheritTheme = Theme.of(context); for now. It's affecting other packages like country_code_picker and getx(fixed) too.

JinKun-Yong avatar Dec 11 '20 14:12 JinKun-Yong

What's the purpose of shadowThemeOnly: true? Removing it may have consequences.

awhitford avatar Dec 11 '20 21:12 awhitford

Duplicate of #206 . I also removed it for the time being.

harsimranmaan avatar Dec 16 '20 16:12 harsimranmaan

same issue

nbpatel94 avatar Feb 15 '21 04:02 nbpatel94