[Flutter]Configure icon settings.avoidance”FormatException: Invalid number (at character 1)”

How to set the application icon.

Avoid “FormatException: Invalid number (at character 1)".

Environmental

・Flutter 2.10.5
・flutter_launcher_icons 0.9.2

Process

Preparing Icons

Size: 512×512 or so, background white (#ffffffff) Logo on the entire area
Transparent background of about 512×512 in size, with the icon on about 50% of the area

pubspec.yaml

dev_dependencies:
   flutter_launcher_icons: 
     git:
       url: https://github.com/Davenchy/flutter_launcher_icons.git
       ref: fixMinSdkParseFlutter2.8

 flutter_icons:
   android: true
   ios: true
   image_path: 'assets/icon.png'
   adaptive_icon_background: '#ffffff'
   adaptive_icon_foreground: 'assets/icon_adaptive_foreground.png'

Execute the command to generate an icon image

flutter pub get
flutter pub run flutter_launcher_icons:main

Flutter

Posted by Next-k