0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【rounded_loading_button】Error: No named parameter with the name 'onSurface'. の解決方法

Posted at

環境情報

❯ flutter --version
Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2663184aa7 (5 weeks ago) • 2024-09-11 16:27:48 -0500
Engine • revision 36335019a8
Tools • Dart 3.5.3 • DevTools 2.37.3
# pubspec.yml
dependencies:
  flutter:
    sdk: flutter
  rounded_loading_button: ^2.1.0

エラーメッセージ

Launching lib/main.dart on iPhone 16 Pro in debug mode...
Xcode build done.                                           18.2s
Failed to build iOS app
Error (Xcode): ../../../.pub-cache/hosted/pub.dev/rounded_loading_button-2.1.0/lib/rounded_loading_button.dart:197:11: Error: No named parameter with the name 'onSurface'.

Could not build the application for the simulator.
Error launching application on iPhone 16 Pro.

Exited (1).

解決方法

ライブラリのリポジトリのmasterブランチを指定する

# pubspec.yml
dependencies:
  flutter:
    sdk: flutter
- rounded_loading_button: ^2.1.0
+ rounded_loading_button:
+   git:
+     url: https://github.com/scopendo/flutter_rounded_loading_button.git
+     ref: master
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?