Giving Exception while running the app
ashtp96 opened this issue · 4 comments
flutter/.pub-cache/hosted/pub.dartlang.org/flutter_multi_formatter-2.7.2/lib/widgets/country_dropdown.dart:176:7: Error: No named parameter with the name 'borderRadius'.
borderRadius: widget.borderRadius,
^^^^^^^^^^^^
flutter/packages/flutter/lib/src/material/dropdown.dart:1514:3: Context: Found this candidate, but the arguments don't match.
DropdownButtonFormField({
It was flutter sdk version issue. I was using 2.5.10. Fixed by changing sdk version to 3.0.1
+1 the same exception while running the app with Flutter 2.10.5.
I'm not ready to update flutter sdk to 3.0.
Which package version can be used with flutter 2.10.5 ?
: Error: No named parameter with the name 'borderRadius'. ../…/widgets/country_dropdown.dart:161 borderRadius: widget.borderRadius, ^^^^^^^^^^^^ : Context: Found this candidate, but the arguments don't match. ../…/material/dropdown.dart:1514 DropdownButtonFormField({ ^^^^^^^^^^^^^^^^^^^^^^^
looks like version flutter_multi_formatter: 2.6.0
works with flutter 2.10.5
I'll remove this parameter in the next version. But if you need this version to work with older Flutter you can just copy/paste this CountryDropdown and make your own version of it without borderRadius. There's nothing special inside.