yangyxd / flutter_picker

Flutter picker plugin
MIT License
693 stars 264 forks source link

Xcode 10,iOS 12中build出现错误 #6

Open 39499740 opened 6 years ago

39499740 commented 6 years ago

Xcode's output: ↳ === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release === Building AOT snapshot in release mode (ios-release)... compiler message: file:///Users/haoyi/.pub-cache/git/flutter_picker-d0aed0785d017a5c601f13ac632a4e06e5d309f5/lib/PickerLocalizationsDelegate.dart:17:3: Error: 'Future' expects 0 type arguments. compiler message: Future load(Locale locale) { compiler message: ^ compiler message: file:///Users/haoyi/.pub-cache/git/flutter_picker-d0aed0785d017a5c601f13ac632a4e06e5d309f5/lib/PickerLocalizationsDelegate.dart:17:31: Error: The return type of the method 'PickerLocalizationsDelegate::load' is invalid-type, which does not match the return type of the overridden method (dart.async::Future<#lib1::PickerLocalizations>). compiler message: Change to a subtype of dart.async::Future<#lib1::PickerLocalizations>. compiler message: Future load(Locale locale) { compiler message: ^ compiler message: file:///Users/haoyi/flutter/packages/flutter/lib/src/widgets/localizations.dart:113:13: Error: This is the overriden method ('load'). compiler message: Future load(Locale locale); compiler message: ^ compiler message: file:///Users/haoyi/.pub-cache/git/flutter_picker-d0aed0785d017a5c601f13ac632a4e06e5d309f5/lib/PickerLocalizationsDelegate.dart:18:12: Error: A value of type '#lib1::SynchronousFuture<#lib2::PickerLocalizations>' can't be assigned to a variable of type 'invalid-type'. compiler message: Try changing the type of the left hand side, or casting the right hand side to 'invalid-type'. compiler message: return SynchronousFuture(PickerLocalizations(locale)); compiler message: ^ Compiler terminated unexpectedly.

Tran-Hoang-Lam commented 6 years ago

Is this issue still there?

39499740 commented 6 years ago

@Tran-Hoang-Lam i dont know,i have change other plugin

jamesbenCN commented 6 years ago

@Tran-Hoang-Lam i dont know,i have change other plugin

hi,friend,can u tell me which plugin u change?

39499740 commented 6 years ago

@Tran-Hoang-Lam i dont know,i have change other plugin

hi,friend,can u tell me which plugin u change?

emmm. i just want a date picker... flutter_cupertino_date_picker