Add a filters page
This commit is contained in:
parent
ce29fd3791
commit
e968d61e8b
6 changed files with 173 additions and 11 deletions
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:libacflutter/Constants.dart';
|
||||
import 'package:pokedex/Consts.dart';
|
||||
import 'package:pokedex/Session.dart';
|
||||
import 'package:pokedex/filters.dart';
|
||||
import 'package:pokedex/pokemon.dart';
|
||||
|
||||
class MainApp extends StatefulWidget {
|
||||
|
@ -26,6 +27,7 @@ class _MainAppState extends State<MainApp> {
|
|||
routes: {
|
||||
"/": (context) => Home(toggleTheme: toggleTheme),
|
||||
"/dex": (context) => DexEntry(),
|
||||
"/filters": (context) => FilterPage(),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
@ -75,6 +77,14 @@ class _HomeState extends State<Home> {
|
|||
],
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
title: Text("Filters"),
|
||||
leading: Icon(Icons.filter),
|
||||
subtitle: Text("Opens the PokeDex filters"),
|
||||
onTap: () {
|
||||
Navigator.pushNamed(context, "/filters");
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue