我想为 flutter 创建启动器图标。我的配置(pubspec.yaml)如下所示。
\n...\n # The following adds the Cupertino Icons font to your application.\n # Use with the CupertinoIcons class for iOS style icons.\n cupertino_icons: ^1.0.2\n flutter_spinkit: ^5.1.0\n url_launcher: ^6.0.17\n http: ^0.13.4\n intl: ^0.17.0\n flutter_launcher_icons: ^0.9.2\n\nflutter_icons:\n android: true\n ios: true\n image_path: "assets/logo_blue.png"\n...\nRun Code Online (Sandbox Code Playgroud)\n我通过控制台安装了 flutter_launcher_icon ( flutter pub add flutter_launcher_icons)。之后,我将配置(见上文)添加到 pubspec.yaml 文件中,并在控制台中输入以下两个命令:
flutter pub get\nflutter pub run flutter_launcher_icons:main\nRun Code Online (Sandbox Code Playgroud)\n如文档中所述(https://pub.dev/packages/flutter_launcher_icons)。但在第二个命令之后,我收到以下错误消息,并且 pub 已完成,退出代码为 255。
\n \xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\n FLUTTER LAUNCHER ICONS (v0.9.1)\n \xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\n\n\n\xe2\x9c\x93 Successfully generated launcher icons\nUnhandled …Run Code Online (Sandbox Code Playgroud) 我想要一张只有两个角是圆角的 v 卡片。我尝试了以下方法,但没有成功(卡旋转了 90\xc2\xb0)。
\n模板:
\n<div class="text-center rotate-ninety ml-n6">\n <v-card \n hover \n ripple \n class="rounded-card py-5 px-2" \n elevation="10" \n color="orange" \n >\n <v-icon \n color="black" \n left\n >\n mdi-domain\n </v-icon>\n <span class="black--text">\n Domain\n </span> \n </v-card> \n </div> \nRun Code Online (Sandbox Code Playgroud)\nCSS:
\n.rotate-ninety {\n writing-mode: vertical-rl;\n text-orientation: mixed;\n}\n\n.rounded-card {\n border-top-left-radius: 25px;\n border-top-right-radius: 25px;\n border-bottom-left-radius: 0px;\n border-bottom-right-radius: 0px;\n}\nRun Code Online (Sandbox Code Playgroud)\n我错过了什么吗?
\n非常感谢\n克里斯
\n