diff --git a/.gitignore b/.gitignore
index 0fa6b67..2396a8e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,6 +8,7 @@
.buildlog/
.history
.svn/
+.vscode/
# IntelliJ related
*.iml
diff --git a/README.md b/README.md
index 178369f..c060095 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,9 @@
The beloved vintage Pacman game with Flutter Animations and Sound Effects compatible in both Andriod and IOS.
+## License
+MIT
+
## Project Structure:
The rough breakdown of the current state of the game will consist of
@@ -16,8 +19,8 @@ algorithm for Ghosts to target Pacman in the game.
## Dependencies
-1. audioplayers: ^0.17.0
-2. flutter_phoenix: ^0.1.0
+ flutter_phoenix: ^0.1.0
+ audioplayers: ^0.20.1
## App Preview
diff --git a/android/app/build.gradle b/android/app/build.gradle
index e1179a7..22d3d1d 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
- compileSdkVersion 29
+ compileSdkVersion 31
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
@@ -40,7 +40,7 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.packman"
minSdkVersion 16
- targetSdkVersion 29
+ targetSdkVersion 31
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index ba3d75b..3549150 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -6,6 +6,7 @@
-
-
diff --git a/android/build.gradle b/android/build.gradle
index 3100ad2..fd16f1a 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -1,12 +1,12 @@
buildscript {
- ext.kotlin_version = '1.3.50'
+ ext.kotlin_version = '1.4.21'
repositories {
google()
jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:3.5.0'
+ classpath 'com.android.tools.build:gradle:4.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
index 296b146..bc6a58a 100644
--- a/android/gradle/wrapper/gradle-wrapper.properties
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
diff --git a/assets/pacman_beginning.wav b/assets/audio/pacman_beginning.wav
similarity index 100%
rename from assets/pacman_beginning.wav
rename to assets/audio/pacman_beginning.wav
diff --git a/assets/pacman_chomp.wav b/assets/audio/pacman_chomp.wav
similarity index 100%
rename from assets/pacman_chomp.wav
rename to assets/audio/pacman_chomp.wav
diff --git a/assets/pacman_death.wav b/assets/audio/pacman_death.wav
similarity index 100%
rename from assets/pacman_death.wav
rename to assets/audio/pacman_death.wav
diff --git a/assets/pacman_intermission.wav b/assets/audio/pacman_intermission.wav
similarity index 100%
rename from assets/pacman_intermission.wav
rename to assets/audio/pacman_intermission.wav
diff --git a/lib/images/ghost.png b/assets/images/ghost1.png
similarity index 100%
rename from lib/images/ghost.png
rename to assets/images/ghost1.png
diff --git a/lib/images/ghost2.png b/assets/images/ghost2.png
similarity index 100%
rename from lib/images/ghost2.png
rename to assets/images/ghost2.png
diff --git a/lib/images/ghost3.png b/assets/images/ghost3.png
similarity index 100%
rename from lib/images/ghost3.png
rename to assets/images/ghost3.png
diff --git a/lib/images/pacman.png b/assets/images/pacman.png
similarity index 100%
rename from lib/images/pacman.png
rename to assets/images/pacman.png
diff --git a/lib/ghost.dart b/lib/ghost.dart
deleted file mode 100644
index 3be9d9a..0000000
--- a/lib/ghost.dart
+++ /dev/null
@@ -1,11 +0,0 @@
-import 'package:flutter/material.dart';
-
-class MyGhost extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Padding(
- padding: EdgeInsets.all(2),
- child: Image.asset('lib/images/ghost.png'),
- );
- }
-}
diff --git a/lib/ghost2.dart b/lib/ghost2.dart
deleted file mode 100644
index ece27a5..0000000
--- a/lib/ghost2.dart
+++ /dev/null
@@ -1,11 +0,0 @@
-import 'package:flutter/material.dart';
-
-class MyGhost2 extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Padding(
- padding: EdgeInsets.all(2),
- child: Image.asset('lib/images/ghost2.png'),
- );
- }
-}
diff --git a/lib/ghost3.dart b/lib/ghost3.dart
deleted file mode 100644
index f0f35dc..0000000
--- a/lib/ghost3.dart
+++ /dev/null
@@ -1,11 +0,0 @@
-import 'package:flutter/material.dart';
-
-class MyGhost3 extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Padding(
- padding: EdgeInsets.all(2),
- child: Image.asset('lib/images/ghost3.png'),
- );
- }
-}
diff --git a/lib/main.dart b/lib/main.dart
index 36cdba2..e95fe5e 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
-import 'HomePage.dart';
+import 'pages/homepage.dart';
void main() {
runApp(MyApp());
diff --git a/lib/HomePage.dart b/lib/pages/homepage.dart
similarity index 90%
rename from lib/HomePage.dart
rename to lib/pages/homepage.dart
index 31e38bd..9ed0649 100644
--- a/lib/HomePage.dart
+++ b/lib/pages/homepage.dart
@@ -1,17 +1,10 @@
import 'dart:async';
-import 'dart:ffi';
import 'dart:math';
import 'package:flutter/material.dart';
-import 'package:flutter/rendering.dart';
-import 'package:packman/ghost.dart';
-import 'package:packman/ghost3.dart';
-import 'package:packman/ghost2.dart';
-import 'package:packman/path.dart';
-import 'package:packman/pixel.dart';
-import 'package:packman/player.dart';
import 'package:audioplayers/audioplayers.dart';
-import 'package:audioplayers/audio_cache.dart';
+
+import '../widgets/imports.dart';
class HomePage extends StatefulWidget {
@override
@@ -30,13 +23,13 @@ class _HomePageState extends State {
var controller;
int score = 0;
bool paused = false;
- AudioPlayer advancedPlayer = new AudioPlayer();
- AudioPlayer advancedPlayer2 = new AudioPlayer();
- AudioCache audioInGame = new AudioCache(prefix: 'assets/');
- AudioCache audioMunch = new AudioCache(prefix: 'assets/');
- AudioCache audioDeath = new AudioCache(prefix: 'assets/');
- AudioCache audioPaused = new AudioCache(prefix: 'assets/');
- List barriers = [
+ AudioPlayer advancedPlayer = AudioPlayer();
+ AudioPlayer advancedPlayer2 = AudioPlayer();
+ AudioCache audioInGame = AudioCache(prefix: 'assets/');
+ AudioCache audioMunch = AudioCache(prefix: 'assets/');
+ AudioCache audioDeath = AudioCache(prefix: 'assets/');
+ AudioCache audioPaused = AudioCache(prefix: 'assets/');
+ List barriers = const [
0,
1,
2,
@@ -141,10 +134,10 @@ class _HomePageState extends State {
void startGame() {
if (preGame) {
- advancedPlayer = new AudioPlayer();
- audioInGame = new AudioCache(fixedPlayer: advancedPlayer);
- audioPaused = new AudioCache(fixedPlayer: advancedPlayer2);
- audioInGame.loop('pacman_beginning.wav');
+ advancedPlayer = AudioPlayer();
+ audioInGame = AudioCache(fixedPlayer: advancedPlayer);
+ audioPaused = AudioCache(fixedPlayer: advancedPlayer2);
+ audioInGame.loop('audio/pacman_beginning.wav');
preGame = false;
getFood();
@@ -155,7 +148,7 @@ class _HomePageState extends State {
}
if (player == ghost || player == ghost2 || player == ghost3) {
advancedPlayer.stop();
- audioDeath.play('pacman_death.wav');
+ audioDeath.play('audio/pacman_death.wav');
setState(() {
player = -1;
});
@@ -167,9 +160,9 @@ class _HomePageState extends State {
title: Center(child: Text("Game Over!")),
content: Text("Your Score : " + (score).toString()),
actions: [
- RaisedButton(
+ ElevatedButton(
onPressed: () {
- audioInGame.loop('pacman_beginning.wav');
+ audioInGame.loop('audio/pacman_beginning.wav');
setState(() {
player = numberInRow * 14 + 1;
ghost = numberInRow * 2 - 2;
@@ -185,12 +178,20 @@ class _HomePageState extends State {
Navigator.pop(context);
});
},
- textColor: Colors.white,
- padding: const EdgeInsets.all(0.0),
+ style: ButtonStyle(
+ textStyle: MaterialStateProperty.all(
+ const TextStyle(
+ color: Colors.white,
+ ),
+ ),
+ padding: MaterialStateProperty.all(
+ const EdgeInsets.all(0.0),
+ ),
+ ),
child: Container(
decoration: const BoxDecoration(
gradient: LinearGradient(
- colors: [
+ colors: [
Color(0xFF0D47A1),
Color(0xFF1976D2),
Color(0xFF42A5F5),
@@ -218,7 +219,7 @@ class _HomePageState extends State {
mouthClosed = !mouthClosed;
});
if (food.contains(player)) {
- audioMunch.play('pacman_chomp.wav');
+ audioMunch.play('audio/pacman_chomp.wav');
setState(() {
food.remove(player);
});
@@ -677,14 +678,17 @@ class _HomePageState extends State {
physics: NeverScrollableScrollPhysics(),
itemCount: numberOfSquares,
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
- crossAxisCount: numberInRow),
+ crossAxisCount: numberInRow,
+ ),
itemBuilder: (BuildContext context, int index) {
if (mouthClosed && player == index) {
return Padding(
padding: EdgeInsets.all(4),
child: Container(
decoration: BoxDecoration(
- color: Colors.yellow, shape: BoxShape.circle),
+ color: Colors.yellow,
+ shape: BoxShape.circle,
+ ),
),
);
} else if (player == index) {
@@ -692,47 +696,43 @@ class _HomePageState extends State {
case "left":
return Transform.rotate(
angle: pi,
- child: MyPlayer(),
+ child: Player(),
);
- break;
case "right":
- return MyPlayer();
- break;
+ return Player();
case "up":
return Transform.rotate(
angle: 3 * pi / 2,
- child: MyPlayer(),
+ child: Player(),
);
- break;
case "down":
return Transform.rotate(
angle: pi / 2,
- child: MyPlayer(),
+ child: Player(),
);
- break;
default:
- return MyPlayer();
+ return Player();
}
} else if (ghost == index) {
- return MyGhost();
+ return Ghost(1);
} else if (ghost2 == index) {
- return MyGhost2();
+ return Ghost(2);
} else if (ghost3 == index) {
- return MyGhost3();
+ return Ghost(3);
} else if (barriers.contains(index)) {
- return MyPixel(
+ return Pixel(
innerColor: Colors.blue[900],
outerColor: Colors.blue[800],
// child: Text(index.toString()),
);
} else if (preGame || food.contains(index)) {
- return MyPath(
+ return Path(
innerColor: Colors.yellow,
outerColor: Colors.black,
// child: Text(index.toString()),
);
} else {
- return MyPath(
+ return Path(
innerColor: Colors.black,
outerColor: Colors.black,
);
@@ -770,7 +770,7 @@ class _HomePageState extends State {
{
paused = true,
advancedPlayer.pause(),
- audioPaused.loop('pacman_intermission.wav'),
+ audioPaused.loop('audio/pacman_intermission.wav'),
}
else
{
@@ -796,7 +796,7 @@ class _HomePageState extends State {
{
paused = true,
advancedPlayer.pause(),
- audioPaused.loop('pacman_intermission.wav'),
+ audioPaused.loop('audio/pacman_intermission.wav'),
},
},
),
diff --git a/lib/widgets/ghost.dart b/lib/widgets/ghost.dart
new file mode 100644
index 0000000..0c52b6a
--- /dev/null
+++ b/lib/widgets/ghost.dart
@@ -0,0 +1,17 @@
+import 'package:flutter/material.dart';
+
+class Ghost extends StatelessWidget {
+ final int index;
+ const Ghost(
+ this.index, {
+ Key? key,
+ }) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ return Padding(
+ padding: EdgeInsets.all(2),
+ child: Image.asset('assets/images/ghost${this.index}.png'),
+ );
+ }
+}
diff --git a/lib/widgets/imports.dart b/lib/widgets/imports.dart
new file mode 100644
index 0000000..7af0375
--- /dev/null
+++ b/lib/widgets/imports.dart
@@ -0,0 +1,4 @@
+export 'path.dart';
+export 'ghost.dart';
+export 'player.dart';
+export 'pixel.dart';
diff --git a/lib/path.dart b/lib/widgets/path.dart
similarity index 86%
rename from lib/path.dart
rename to lib/widgets/path.dart
index 0ad5592..77a56ff 100644
--- a/lib/path.dart
+++ b/lib/widgets/path.dart
@@ -1,11 +1,11 @@
import 'package:flutter/material.dart';
-class MyPath extends StatelessWidget {
+class Path extends StatelessWidget {
final innerColor;
final outerColor;
final child;
- MyPath({this.innerColor, this.outerColor, this.child});
+ const Path({this.innerColor, this.outerColor, this.child});
@override
Widget build(BuildContext context) {
return Padding(
diff --git a/lib/pixel.dart b/lib/widgets/pixel.dart
similarity index 85%
rename from lib/pixel.dart
rename to lib/widgets/pixel.dart
index 3b56db6..f09fe25 100644
--- a/lib/pixel.dart
+++ b/lib/widgets/pixel.dart
@@ -1,11 +1,12 @@
import 'package:flutter/material.dart';
-class MyPixel extends StatelessWidget {
+class Pixel extends StatelessWidget {
final innerColor;
final outerColor;
final child;
- MyPixel({this.innerColor, this.outerColor, this.child});
+ const Pixel({this.innerColor, this.outerColor, this.child});
+
@override
Widget build(BuildContext context) {
return Padding(
diff --git a/lib/player.dart b/lib/widgets/player.dart
similarity index 68%
rename from lib/player.dart
rename to lib/widgets/player.dart
index 6278618..4fac810 100644
--- a/lib/player.dart
+++ b/lib/widgets/player.dart
@@ -1,12 +1,15 @@
import 'package:flutter/material.dart';
-class MyPlayer extends StatelessWidget {
+class Player extends StatelessWidget {
+ const Player({
+ Key? key,
+ }) : super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(2.0),
child: Image.asset(
- 'lib/images/pacman.png',
+ 'assets/images/pacman.png',
// width: MediaQuery.of(context).size.width,
// fit: BoxFit.cover,
),
diff --git a/pubspec.lock b/pubspec.lock
index 2323b79..9d999b1 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -7,91 +7,84 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
- version: "2.5.0-nullsafety.3"
+ version: "2.8.2"
audioplayers:
dependency: "direct main"
description:
name: audioplayers
url: "https://pub.dartlang.org"
source: hosted
- version: "0.17.0"
+ version: "0.20.1"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
- version: "2.1.0-nullsafety.3"
+ version: "2.1.0"
characters:
dependency: transitive
description:
name: characters
url: "https://pub.dartlang.org"
source: hosted
- version: "1.1.0-nullsafety.5"
+ version: "1.2.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
- version: "1.2.0-nullsafety.3"
+ version: "1.3.1"
clock:
dependency: transitive
description:
name: clock
url: "https://pub.dartlang.org"
source: hosted
- version: "1.1.0-nullsafety.3"
+ version: "1.1.0"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
- version: "1.15.0-nullsafety.5"
- convert:
- dependency: transitive
- description:
- name: convert
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.1.1"
+ version: "1.16.0"
crypto:
dependency: transitive
description:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
- version: "2.1.5"
+ version: "3.0.2"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.1+1"
+ version: "1.0.4"
fake_async:
dependency: transitive
description:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
- version: "1.2.0-nullsafety.3"
+ version: "1.3.0"
ffi:
dependency: transitive
description:
name: ffi
url: "https://pub.dartlang.org"
source: hosted
- version: "0.1.3"
+ version: "2.0.0"
file:
dependency: transitive
description:
name: file
url: "https://pub.dartlang.org"
source: hosted
- version: "5.2.1"
+ version: "6.1.2"
flutter:
dependency: "direct main"
description: flutter
@@ -114,97 +107,125 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
- intl:
+ http:
dependency: transitive
description:
- name: intl
+ name: http
url: "https://pub.dartlang.org"
source: hosted
- version: "0.16.1"
+ version: "0.13.4"
+ http_parser:
+ dependency: transitive
+ description:
+ name: http_parser
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "4.0.1"
js:
dependency: transitive
description:
name: js
url: "https://pub.dartlang.org"
source: hosted
- version: "0.6.3-nullsafety.3"
+ version: "0.6.4"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
- version: "0.12.10-nullsafety.3"
+ version: "0.12.11"
+ material_color_utilities:
+ dependency: transitive
+ description:
+ name: material_color_utilities
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.1.4"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
- version: "1.3.0-nullsafety.6"
+ version: "1.7.0"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
- version: "1.8.0-nullsafety.3"
+ version: "1.8.1"
path_provider:
dependency: transitive
description:
name: path_provider
url: "https://pub.dartlang.org"
source: hosted
- version: "1.6.24"
+ version: "2.0.10"
+ path_provider_android:
+ dependency: transitive
+ description:
+ name: path_provider_android
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.14"
+ path_provider_ios:
+ dependency: transitive
+ description:
+ name: path_provider_ios
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.9"
path_provider_linux:
dependency: transitive
description:
name: path_provider_linux
url: "https://pub.dartlang.org"
source: hosted
- version: "0.0.1+2"
+ version: "2.1.7"
path_provider_macos:
dependency: transitive
description:
name: path_provider_macos
url: "https://pub.dartlang.org"
source: hosted
- version: "0.0.4+6"
+ version: "2.0.6"
path_provider_platform_interface:
dependency: transitive
description:
name: path_provider_platform_interface
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.4"
+ version: "2.0.4"
path_provider_windows:
dependency: transitive
description:
name: path_provider_windows
url: "https://pub.dartlang.org"
source: hosted
- version: "0.0.4+3"
+ version: "2.1.0"
platform:
dependency: transitive
description:
name: platform
url: "https://pub.dartlang.org"
source: hosted
- version: "2.2.1"
+ version: "3.1.0"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.3"
+ version: "2.1.2"
process:
dependency: transitive
description:
name: process
url: "https://pub.dartlang.org"
source: hosted
- version: "3.0.13"
+ version: "4.2.4"
sky_engine:
dependency: transitive
description: flutter
@@ -216,77 +237,77 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
- version: "1.8.0-nullsafety.4"
+ version: "1.8.2"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.dartlang.org"
source: hosted
- version: "1.10.0-nullsafety.6"
+ version: "1.10.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
- version: "2.1.0-nullsafety.3"
+ version: "2.1.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
- version: "1.1.0-nullsafety.3"
+ version: "1.1.0"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
source: hosted
- version: "1.2.0-nullsafety.3"
+ version: "1.2.0"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
- version: "0.2.19-nullsafety.6"
+ version: "0.4.9"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.dartlang.org"
source: hosted
- version: "1.3.0-nullsafety.5"
+ version: "1.3.1"
uuid:
dependency: transitive
description:
name: uuid
url: "https://pub.dartlang.org"
source: hosted
- version: "2.2.2"
+ version: "3.0.6"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
- version: "2.1.0-nullsafety.5"
+ version: "2.1.2"
win32:
dependency: transitive
description:
name: win32
url: "https://pub.dartlang.org"
source: hosted
- version: "1.7.4"
+ version: "2.7.0"
xdg_directories:
dependency: transitive
description:
name: xdg_directories
url: "https://pub.dartlang.org"
source: hosted
- version: "0.1.2"
+ version: "0.2.0+1"
sdks:
- dart: ">=2.12.0-0.0 <3.0.0"
- flutter: ">=1.12.13+hotfix.5 <2.0.0"
+ dart: ">=2.17.0 <3.0.0"
+ flutter: ">=3.0.0"
diff --git a/pubspec.yaml b/pubspec.yaml
index 401f8b5..c7b2ed3 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,80 +1,24 @@
name: packman
-description: A new Flutter project.
-
-# The following line prevents the package from being accidentally published to
-# pub.dev using `pub publish`. This is preferred for private packages.
-publish_to: 'none' # Remove this line if you wish to publish to pub.dev
-
-# The following defines the version and build number for your application.
-# A version number is three numbers separated by dots, like 1.2.43
-# followed by an optional build number separated by a +.
-# Both the version and the builder number may be overridden in flutter
-# build by specifying --build-name and --build-number, respectively.
-# In Android, build-name is used as versionName while build-number used as versionCode.
-# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
-# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
-# Read more about iOS versioning at
-# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
+description: Packman Game Project.
+publish_to: 'none'
version: 1.0.0+1
environment:
- sdk: ">=2.7.0 <3.0.0"
+ sdk: ">=2.12.0 <3.0.0"
-dependencies:
- flutter_phoenix: ^0.1.0
-
+dependencies:
flutter:
sdk: flutter
-
-
- # The following adds the Cupertino Icons font to your application.
- # Use with the CupertinoIcons class for iOS style icons.
- cupertino_icons: ^1.0.1
- audioplayers: ^0.17.0
+ cupertino_icons: ^1.0.4
+ flutter_phoenix: ^0.1.0
+ audioplayers: ^0.20.1
dev_dependencies:
flutter_test:
sdk: flutter
-# For information on the generic Dart part of this file, see the
-# following page: https://dart.dev/tools/pub/pubspec
-
-# The following section is specific to Flutter.
flutter:
-
- # The following line ensures that the Material Icons font is
- # included with your application, so that you can use the icons in
- # the material Icons class.
uses-material-design: true
-
- # To add assets to your application, add an assets section, like this:
assets:
- - lib/images/
- - assets/
- # - images/a_dot_ham.jpeg
-
- # An image asset can refer to one or more resolution-specific "variants", see
- # https://flutter.dev/assets-and-images/#resolution-aware.
-
- # For details regarding adding assets from package dependencies, see
- # https://flutter.dev/assets-and-images/#from-packages
-
- # To add custom fonts to your application, add a fonts section here,
- # in this "flutter" section. Each entry in this list should have a
- # "family" key with the font family name, and a "fonts" key with a
- # list giving the asset and other descriptors for the font. For
- # example:
- # fonts:
- # - family: Schyler
- # fonts:
- # - asset: fonts/Schyler-Regular.ttf
- # - asset: fonts/Schyler-Italic.ttf
- # style: italic
- # - family: Trajan Pro
- # fonts:
- # - asset: fonts/TrajanPro.ttf
- # - asset: fonts/TrajanPro_Bold.ttf
- # weight: 700
- #
- # For details regarding fonts from package dependencies,
- # see https://flutter.dev/custom-fonts/#from-packages
+ - assets/audio/
+ - assets/images/
\ No newline at end of file