This repository has been archived by the owner on Jun 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds a bottom bar with an additional top videos tab * Add search * Circular ripple effect around search icon * Improve display of Video lists * Remove demo vids * Revert the changes to gradle * Update pubspec.yaml
- Loading branch information
1 parent
54547ce
commit e179567
Showing
17 changed files
with
693 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<style name="FlitchTheme" parent="@android:style/Theme.DeviceDefault"> | ||
<item name="android:colorPrimary">#673AB7</item> | ||
<item name="android:colorPrimaryDark">#4d2b89</item> | ||
<item name="android:colorAccent">#9E9E9E</item> | ||
</style> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<style name="FlitchTheme" parent="@android:style/Theme.DeviceDefault"> | ||
<item name="android:actionBarStyle">@style/FlitchActionBarTheme</item> | ||
</style> | ||
|
||
<style name="FlitchActionBarTheme" parent="@android:style/Widget.DeviceDefault.ActionBar"> | ||
<item name="android:background">#673AB7</item> | ||
<item name="android:backgroundStacked">?attr/colorPrimary</item> | ||
<item name="android:backgroundSplit">?attr/colorPrimary</item> | ||
</style> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2017, Google Inc. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
import 'package:flitch/src/services.dart'; | ||
import 'package:flitch/src/widgets/videos.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:twitch/twitch.dart'; | ||
|
||
class ChannelScreen extends StatelessWidget { | ||
final Channel channel; | ||
|
||
const ChannelScreen(this.channel); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return new Scaffold( | ||
appBar: new AppBar( | ||
title: new Text("Videos from ${channel.name}")), | ||
body: new VideosList(Services.twitch.getChannelVideos(channel.id))); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Copyright 2017, Google Inc. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
import 'package:flitch/src/widgets/search_channels.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class SearchScreen extends StatefulWidget { | ||
const SearchScreen(); | ||
|
||
@override | ||
State<StatefulWidget> createState() { | ||
return new SearchScreenState(); | ||
} | ||
} | ||
|
||
class SearchScreenState extends State<SearchScreen> { | ||
String _query = ""; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return new Scaffold( | ||
appBar: new AppBar( | ||
title: new Container( | ||
padding: new EdgeInsets.only(right: 12.0), | ||
child: new TextField( | ||
onSubmitted: (query) { | ||
setState(() { | ||
_query = query; | ||
}); | ||
}, | ||
autofocus: true, | ||
decoration: new InputDecoration( | ||
hideDivider: true, | ||
hintText: "Search channels...", | ||
hintStyle: new TextStyle( | ||
color: new Color.fromARGB(120, 255, 255, 255), | ||
fontSize: 18.0, | ||
fontWeight: FontWeight.normal, | ||
), | ||
), | ||
style: new TextStyle( | ||
color: Colors.white, | ||
fontSize: 18.0, | ||
fontWeight: FontWeight.normal)), | ||
), | ||
), | ||
body: _query.isEmpty | ||
? new Container() | ||
: new SearchChannelsList( | ||
_query, | ||
key: new Key(_query), | ||
)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.