Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adarshbalu committed Apr 27, 2020
1 parent a6efaca commit 90daffa
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 21 deletions.
Binary file modified build/app/outputs/apk/release/app-release.apk
Binary file not shown.
39 changes: 21 additions & 18 deletions lib/screens/india_home_page.dart
Expand Up @@ -20,7 +20,7 @@ class _IndiaHomePageState extends State<IndiaHomePage> {
List<StateData> stateDataList;
Map<String, StateData> dataMap;
StateData mostCases, mostDeaths, mostRecovered, totalData;
bool load = false, showAll = true, showNew = true, showStats = true;
bool load = false, showAll = true, showNew = true, showStats = false;
String indiaFlagUrl = 'http://www.geognos.com/api/en/countries/flag/IN.png';
IconData showAllIcon, showNewIcon, showStatsIcon;
@override
Expand Down Expand Up @@ -69,23 +69,26 @@ class _IndiaHomePageState extends State<IndiaHomePage> {
'INDIA',
style: kHeaderTextStyle,
),
GestureDetector(
onTap: () {
toStateSearchPage();
},
child: Container(
width: 50,
height: 50,
margin: EdgeInsets.only(right: 8),
child: Material(
color: Colors.white70,
type: MaterialType.circle,
elevation: 4,
child: Icon(
Icons.search,
color: Colors.black,
size: 35,
)),
Tooltip(
message: 'Search States',
child: GestureDetector(
onTap: () {
toStateSearchPage();
},
child: Container(
width: 50,
height: 50,
margin: EdgeInsets.only(right: 8),
child: Material(
color: Colors.white70,
type: MaterialType.circle,
elevation: 4,
child: Icon(
Icons.search,
color: Colors.black,
size: 35,
)),
),
),
)
],
Expand Down
6 changes: 3 additions & 3 deletions lib/screens/loading_screen.dart
Expand Up @@ -6,15 +6,15 @@ class LoaderScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
int offset = 0;
int time = 800;
int time = 1000;

return Column(
children: <Widget>[
AppHeader(
headerText: 'COVID-19',
),
SizedBox(
height: 20,
height: 30,
),
Flexible(
child: ListView.builder(
Expand All @@ -26,7 +26,7 @@ class LoaderScreen extends StatelessWidget {
padding: EdgeInsets.symmetric(horizontal: 15),
child: Shimmer.fromColors(
highlightColor: Colors.white,
baseColor: Colors.grey[100],
baseColor: Colors.grey[300],
child: ShimmerLayout(),
period: Duration(milliseconds: time),
));
Expand Down

0 comments on commit 90daffa

Please sign in to comment.