Rename & add category args
This commit is contained in:
parent
502a76f62f
commit
9b687b8335
1 changed files with 8 additions and 6 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:frosty/providers/authentication_provider.dart';
|
||||
import 'package:frosty/screens/settings.dart';
|
||||
import 'package:frosty/providers/channel_list_provider.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import 'channel_list.dart';
|
||||
|
||||
class Home extends StatelessWidget {
|
||||
|
|
@ -14,12 +14,12 @@ class Home extends StatelessWidget {
|
|||
length: 3,
|
||||
child: Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text('Top Channels'),
|
||||
title: Text('Frosty for Twitch'),
|
||||
bottom: TabBar(
|
||||
tabs: [
|
||||
Tab(text: 'Top'),
|
||||
Tab(text: 'Followed'),
|
||||
Tab(text: 'Games'),
|
||||
Tab(text: 'Categories'),
|
||||
],
|
||||
),
|
||||
actions: [
|
||||
|
|
@ -44,9 +44,11 @@ class Home extends StatelessWidget {
|
|||
if (snapshot.connectionState == ConnectionState.done) {
|
||||
return TabBarView(
|
||||
children: [
|
||||
ChannelList(),
|
||||
Center(
|
||||
child: Text('Followed'),
|
||||
ChannelList(
|
||||
category: Category.top,
|
||||
),
|
||||
ChannelList(
|
||||
category: Category.followed,
|
||||
),
|
||||
Center(
|
||||
child: Text('Games'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue