Add more data entries

This commit is contained in:
zontreck 2025-03-22 18:48:35 -07:00
parent c5cc8ed220
commit 4cfd3612fe
10 changed files with 33 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 675 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 449 B

3
lib/Consts.dart Normal file
View file

@ -0,0 +1,3 @@
class Constants {
static const VERSION = "1.0.032225+1848";
}

View file

@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:libacflutter/Constants.dart';
import 'package:pokedex/Consts.dart';
import 'package:pokedex/Session.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(
padding: EdgeInsets.all(8),
child: GridView.builder(

View file

@ -108,7 +108,10 @@ enum Pokemon {
Venusaur(3, Generation.One, [Type.Grass, Type.Poison], null),
Charmander(4, Generation.One, [Type.Fire], Evolution(5, 16)),
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 Generation generation;

View file

@ -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
# 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.
version: 1.0.0+1
version: 1.0.032225+1848
environment:
sdk: ^3.7.0
@ -76,6 +76,12 @@ flutter:
- assets/sprites/gen1/charmeleon.png
- assets/sprites/dex/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
# https://flutter.dev/to/resolution-aware-images