flutter-team-archive/super_dash
一个使用 Flutter 和 Flame 构建的跨平台演示游戏
- Stars
- 396
- Forks
- 160
- 最近推送(UTC)
- 2026年6月8日
- 项目状态
- 已归档
使用的依赖
依赖清单 35 项
- app_ui
{"path":"packages/app_ui"} - audioplayers
^5.2.0 - authentication_repository
{"path":"packages/authentication_repository"} - bloc
^8.1.2 - cloud_firestore
^4.15.6 - equatable
^2.0.5 - file_selector
^1.0.1 - firebase_analytics
^10.8.7 - firebase_auth
^4.17.6 - firebase_core
^2.25.5 - flame
^1.10.0 - flame_behaviors
^1.0.0 - flame_tiled
^1.15.0 - flow_builder
^0.0.9 - flutter
{"sdk":"flutter"} - flutter_bloc
^8.1.3 - flutter_localizations
{"sdk":"flutter"} - font_awesome_flutter
^10.6.0 - intl
^0.18.0 - leaderboard_repository
{"path":"packages/leaderboard_repository"} - leap
^0.2.1 - logging
^1.2.0 - ordered_set
^5.0.2 - path
^1.8.3 - pathxp
^0.4.0 - provider
^6.0.5 - share_plus
^7.2.1 - shared_preferences
^2.2.2 - url_launcher
^6.2.1 - bloc_test开发依赖
^9.1.2 - flame_test开发依赖
^1.14.0 - flutter_launcher_icons开发依赖
^0.13.1 - flutter_test开发依赖
{"sdk":"flutter"} - mocktail开发依赖
^1.0.0 - very_good_analysis开发依赖
^5.0.0
原始 README
以下为英文项目原文快照,最新内容请访问 GitHub。
展开 / 收起项目 README
Super Dash
coverage style: very good analysis License: MIT
Generated by the Very Good CLI 🤖
A Very Good Platformer Game generated by Very Good CLI.
Play the game 🎮
Play directly in your desktop browser, or download the application for Android and iOS.
Getting Started 🚀
This project contains 3 flavors:
- development
- staging
- production
To run the desired flavor either use the launch configuration in VSCode/Android Studio or use the following commands:
# Development
$ flutter run --flavor development --target lib/main_dev.dart
# Staging
$ flutter run --flavor staging --target lib/main_tester.dart
# Production
$ flutter run --flavor production --target lib/main_prod.dart
*Super Dash works on iOS, Android, Web, and Windows.
Running Tests 🧪
To run all unit and widget tests use the following command:
$ flutter test --coverage --test-randomize-ordering-seed random
To view the generated coverage report you can use lcov.
# Generate Coverage Report
$ genhtml coverage/lcov.info -o coverage/
# Open Coverage Report
$ open coverage/index.html
Working with Translations 🌐
This project relies on flutter_localizations and follows the official internationalization guide for Flutter.
Adding Strings
- To add a new localizable string, open the
app_en.arbfile atlib/l10n/arb/app_en.arb.
{
"@@locale": "en",
"counterAppBarTitle": "Counter",
"@counterAppBarTitle": {
"description": "Text shown in the AppBar of the Counter Page"
}
}
- Then add a new key/value and description
{
"@@locale": "en",
"counterAppBarTitle": "Counter",
"@counterAppBarTitle": {
"description": "Text shown in the AppBar of the Counter Page"
},
"helloWorld": "Hello World",
"@helloWorld": {
"description": "Hello World Text"
}
}
- Use the new string
import 'package:dash_run/l10n/l10n.dart';
@override
Widget build(BuildContext context) {
final l10n = context.l10n;
return Text(l10n.helloWorld);
}
Adding Supported Locales
Update the CFBundleLocalizations array in the Info.plist at ios/Runner/Info.plist to include the new locale.
...
<key>CFBundleLocalizations</key>
<array>
<string>en</string>
<string>es</string>
</array>
...
Adding Translations
- For each supported locale, add a new ARB file in
lib/l10n/arb.
├── l10n
│ ├── arb
│ │ ├── app_en.arb
│ │ └── app_es.arb
- Add the translated strings to each
.arbfile:
app_en.arb
{
"@@locale": "en",
"counterAppBarTitle": "Counter",
"@counterAppBarTitle": {
"description": "Text shown in the AppBar of the Counter Page"
}
}
app_es.arb
{
"@@locale": "es",
"counterAppBarTitle": "Contador",
"@counterAppBarTitle": {
"description": "Texto mostrado en la AppBar de la página del contador"
}
}