Add more data entries
This commit is contained in:
parent
c5cc8ed220
commit
4cfd3612fe
10 changed files with 33 additions and 2 deletions
BIN
assets/sprites/dex/blastoise.png
Normal file
BIN
assets/sprites/dex/blastoise.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
assets/sprites/dex/squirtle.png
Normal file
BIN
assets/sprites/dex/squirtle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
BIN
assets/sprites/dex/wartortle.png
Normal file
BIN
assets/sprites/dex/wartortle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
assets/sprites/gen1/blastoise.png
Normal file
BIN
assets/sprites/gen1/blastoise.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 675 B |
BIN
assets/sprites/gen1/squirtle.png
Normal file
BIN
assets/sprites/gen1/squirtle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 320 B |
BIN
assets/sprites/gen1/wartortle.png
Normal file
BIN
assets/sprites/gen1/wartortle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 449 B |
3
lib/Consts.dart
Normal file
3
lib/Consts.dart
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
class Constants {
|
||||||
|
static const VERSION = "1.0.032225+1848";
|
||||||
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:libacflutter/Constants.dart';
|
import 'package:libacflutter/Constants.dart';
|
||||||
|
import 'package:pokedex/Consts.dart';
|
||||||
import 'package:pokedex/Session.dart';
|
import 'package:pokedex/Session.dart';
|
||||||
import 'package:pokedex/pokemon.dart';
|
import 'package:pokedex/pokemon.dart';
|
||||||
|
|
||||||
|
@ -57,6 +58,24 @@ class _HomeState extends State<Home> {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
drawer: Drawer(
|
||||||
|
elevation: 50,
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
DrawerHeader(
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Text("PokeDex", style: TextStyle(fontSize: 24)),
|
||||||
|
Text(
|
||||||
|
"Version: ${Constants.VERSION}",
|
||||||
|
style: TextStyle(fontSize: 24),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
body: Padding(
|
body: Padding(
|
||||||
padding: EdgeInsets.all(8),
|
padding: EdgeInsets.all(8),
|
||||||
child: GridView.builder(
|
child: GridView.builder(
|
||||||
|
|
|
@ -108,7 +108,10 @@ enum Pokemon {
|
||||||
Venusaur(3, Generation.One, [Type.Grass, Type.Poison], null),
|
Venusaur(3, Generation.One, [Type.Grass, Type.Poison], null),
|
||||||
Charmander(4, Generation.One, [Type.Fire], Evolution(5, 16)),
|
Charmander(4, Generation.One, [Type.Fire], Evolution(5, 16)),
|
||||||
Charmeleon(5, Generation.One, [Type.Fire], Evolution(6, 36)),
|
Charmeleon(5, Generation.One, [Type.Fire], Evolution(6, 36)),
|
||||||
Charizard(6, Generation.One, [Type.Fire, Type.Flying], null);
|
Charizard(6, Generation.One, [Type.Fire, Type.Flying], null),
|
||||||
|
Squirtle(7, Generation.One, [Type.Water], Evolution(8, 16)),
|
||||||
|
Wartortle(8, Generation.One, [Type.Water], Evolution(9, 36)),
|
||||||
|
Blastoise(9, Generation.One, [Type.Water], null);
|
||||||
|
|
||||||
final int id;
|
final int id;
|
||||||
final Generation generation;
|
final Generation generation;
|
||||||
|
|
|
@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
# In Windows, build-name is used as the major, minor, and patch parts
|
# In Windows, build-name is used as the major, minor, and patch parts
|
||||||
# of the product and file versions while build-number is used as the build suffix.
|
# of the product and file versions while build-number is used as the build suffix.
|
||||||
version: 1.0.0+1
|
version: 1.0.032225+1848
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.7.0
|
sdk: ^3.7.0
|
||||||
|
@ -76,6 +76,12 @@ flutter:
|
||||||
- assets/sprites/gen1/charmeleon.png
|
- assets/sprites/gen1/charmeleon.png
|
||||||
- assets/sprites/dex/charizard.png
|
- assets/sprites/dex/charizard.png
|
||||||
- assets/sprites/gen1/charizard.png
|
- assets/sprites/gen1/charizard.png
|
||||||
|
- assets/sprites/dex/squirtle.png
|
||||||
|
- assets/sprites/gen1/squirtle.png
|
||||||
|
- assets/sprites/dex/wartortle.png
|
||||||
|
- assets/sprites/gen1/wartortle.png
|
||||||
|
- assets/sprites/dex/blastoise.png
|
||||||
|
- assets/sprites/gen1/blastoise.png
|
||||||
|
|
||||||
# An image asset can refer to one or more resolution-specific "variants", see
|
# An image asset can refer to one or more resolution-specific "variants", see
|
||||||
# https://flutter.dev/to/resolution-aware-images
|
# https://flutter.dev/to/resolution-aware-images
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue