mirror of
https://github.com/flutter/samples.git
synced 2026-04-04 10:41:55 +00:00
Add game_template (#1180)
Adds a template / sample for games built in Flutter, with all the bells and whistles, like ads, in-app purchases, audio, main menu, settings, and so on. Co-authored-by: Parker Lougheed Co-authored-by: Shams Zakhour
This commit is contained in:
58
game_template/pubspec.yaml
Normal file
58
game_template/pubspec.yaml
Normal file
@@ -0,0 +1,58 @@
|
||||
name: game_template
|
||||
description: A mobile game built in Flutter.
|
||||
|
||||
# Prevent accidental publishing to pub.dev.
|
||||
publish_to: 'none'
|
||||
|
||||
version: 0.0.1+1
|
||||
|
||||
environment:
|
||||
sdk: ">=2.16.0 <3.0.0"
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
|
||||
audioplayers: ^0.20.1
|
||||
cupertino_icons: ^1.0.2
|
||||
go_router: ^3.0.1
|
||||
logging: ^1.0.2
|
||||
provider: ^6.0.2
|
||||
shared_preferences: ^2.0.13
|
||||
|
||||
# If you don't need one of the following dependencies,
|
||||
# delete the relevant line below, and get rid of any Dart code
|
||||
# that references the dependency.
|
||||
firebase_core: ^1.15.0 # Needed for Crashlytics below
|
||||
firebase_crashlytics: ^2.6.3 # Error reporting
|
||||
games_services: ^2.0.7 # Achievements and leaderboards
|
||||
google_mobile_ads: ^1.1.0 # Ads
|
||||
in_app_purchase: ^3.0.1 # In-app purchases
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
|
||||
flutter_launcher_icons: ^0.9.2
|
||||
flutter_lints: ^1.0.0
|
||||
test: ^1.19.0
|
||||
|
||||
flutter:
|
||||
uses-material-design: true
|
||||
|
||||
assets:
|
||||
- assets/images/
|
||||
- assets/music/
|
||||
- assets/sfx/
|
||||
|
||||
fonts:
|
||||
- family: Permanent Marker
|
||||
fonts:
|
||||
- asset: assets/Permanent_Marker/PermanentMarker-Regular.ttf
|
||||
|
||||
flutter_icons:
|
||||
android: true
|
||||
ios: true
|
||||
image_path: "assets/icon.png"
|
||||
adaptive_icon_background: "#FFFFFF"
|
||||
adaptive_icon_foreground: "assets/icon-adaptive-foreground.png"
|
||||
Reference in New Issue
Block a user