add/search/update
This commit is contained in:
@@ -29,17 +29,12 @@ class _TabsScreenState extends State<TabsScreen> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Widget activePage = const TVShowsScreen();
|
||||
var activePageTitle = 'TV Shows';
|
||||
|
||||
if (_selectedPageIndex == 1) {
|
||||
activePage = const MoviesScreen();
|
||||
activePageTitle = 'Movies';
|
||||
}
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(activePageTitle),
|
||||
),
|
||||
body: activePage,
|
||||
bottomNavigationBar: BottomNavigationBar(
|
||||
onTap: _selectPage,
|
||||
|
||||
Reference in New Issue
Block a user