Add a data generator for the completed.md checklist.
This commit is contained in:
parent
18641d5606
commit
cef613c265
11 changed files with 1047 additions and 446 deletions
|
@ -4,6 +4,7 @@ import 'package:pokedex/Consts.dart';
|
|||
import 'package:pokedex/Session.dart';
|
||||
import 'package:pokedex/filters.dart';
|
||||
import 'package:pokedex/pokemon.dart';
|
||||
import 'package:pokedex/pokemonHelpers.dart';
|
||||
|
||||
class MainApp extends StatefulWidget {
|
||||
const MainApp({super.key});
|
||||
|
@ -182,7 +183,7 @@ class _DexEntryState extends State<DexEntry> {
|
|||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text("Type: ", style: TextStyle(fontSize: 24)),
|
||||
_pkmn.getTypeWidgets(),
|
||||
PokemonHelpers.getTypeWidgets(_pkmn),
|
||||
],
|
||||
),
|
||||
Row(
|
||||
|
@ -196,26 +197,28 @@ class _DexEntryState extends State<DexEntry> {
|
|||
),
|
||||
if (_pkmn.extraVariants.isNotEmpty)
|
||||
Text("Extra Variations: ", style: TextStyle(fontSize: 24)),
|
||||
if (_pkmn.extraVariants.isNotEmpty) _pkmn.getVariations(),
|
||||
if (_pkmn.extraVariants.isNotEmpty)
|
||||
PokemonHelpers.getVariations(_pkmn),
|
||||
|
||||
SizedBox(height: 32),
|
||||
SingleChildScrollView(
|
||||
scrollDirection: Axis.horizontal,
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: _pkmn.getEvolutions(0),
|
||||
children: PokemonHelpers.getEvolutions(0, _pkmn),
|
||||
),
|
||||
),
|
||||
if (SessionData.enableDescription && _pkmn.dexEntries.isNotEmpty)
|
||||
Text("Description: ", style: TextStyle(fontSize: 24)),
|
||||
if (SessionData.enableDescription && _pkmn.dexEntries.isNotEmpty)
|
||||
_pkmn.printDescription(),
|
||||
PokemonHelpers.printDescription(_pkmn),
|
||||
|
||||
SizedBox(height: 50),
|
||||
|
||||
if (_pkmn.locations.isNotEmpty)
|
||||
Text("Where to find:", style: TextStyle(fontSize: 24)),
|
||||
if (_pkmn.locations.isNotEmpty) _pkmn.printLocations(),
|
||||
if (_pkmn.locations.isNotEmpty)
|
||||
PokemonHelpers.printLocations(_pkmn),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue