dark版

flutter 插件

  • octo_image
  • flutter_launcher_icons
  • animated_text_kit

octo_image 图片加载

文档:https://pub.flutter-io.cn/packages/octo_image

OctoImage(
  image: CachedNetworkImageProvider(
      'https://blurha.sh/assets/images/img1.jpg'),
  placeholderBuilder: OctoPlaceholder.blurHash(
    'LEHV6nWB2yk8pyo0adR*.7kCMdnj',
  ),
  errorBuilder: OctoError.icon(color: Colors.red),
  fit: BoxFit.cover,
);

flutter_launcher_icons 自动生成图标

相关地址: https://www.cnblogs.com/r1cardo/p/15513749.html

dev_dependencies: 
  flutter_launcher_icons: 

flutter_icons:
  android: "launcher_icon" 
  ios: true
  image_path: "assets/icon.png"

然后添加一张1024*1024像素的图到assets目录下,命名为icon.png

flutter packages get
flutter packages pub run flutter_launcher_icons:main
安卓图标目录是androidappsrcmainres
IOS目录为iosRunnerAssets.xcassetsAppIcon.appiconset