Skip to content

Commit

Permalink
Update Information UI
Browse files Browse the repository at this point in the history
  • Loading branch information
tayormi committed Mar 17, 2020
1 parent 975625f commit 22ba4dd
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions lib/pages/screens/information.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:covid_tracker/pages/widgets/information_title_card.dart';
import 'package:covid_tracker/theme/color/light_color.dart';
import 'package:covid_tracker/theme/theme.dart';
import 'package:flutter/material.dart';
import 'package:line_icons/line_icons.dart';
import 'package:responsive_screen/responsive_screen.dart';

class InformationScreen extends StatelessWidget {
Expand All @@ -10,25 +10,18 @@ class InformationScreen extends StatelessWidget {
final Function wp = Screen(context).wp;
final Function hp = Screen(context).hp;
return Scaffold(
backgroundColor: LightColor.background,

// appBar: AppBar(
// centerTitle: true,
// elevation: 0,
// backgroundColor: LightColor.background,
// title: Text('Information', style: AppTheme.h1Style.copyWith(color: LightColor.darkgrey))
// ),

body: SingleChildScrollView(
padding: EdgeInsets.only(left: 20, right: 20, top: 20),
child: Column(
children: <Widget>[
InformationTitleCard(icon: Icons.info, iconColor: Color(0xFFd7d5ed), subTitle: 'Learn how Covid-19 spread', title: 'How it Spreads?',),
InformationTitleCard(icon: LineIcons.share_alt, iconColor: CardColors.blue, subTitle: 'Learn how Covid-19 spread', title: 'How it Spreads?',),
SizedBox(height: hp(3)),
InformationTitleCard(icon: Icons.info, iconColor: Color(0xFFfee9e8), subTitle: 'Learn Covid-19 symptoms', title: 'Symptoms',),
InformationTitleCard(icon: LineIcons.warning, iconColor: CardColors.cyan, subTitle: 'Learn Covid-19 symptoms', title: 'Symptoms',),
SizedBox(height: hp(3)),
InformationTitleCard(icon: Icons.info, iconColor: Color(0xFFd6eede), subTitle: 'Learn Covid-19 treatments', title: 'Prevention & treatment',),
InformationTitleCard(icon: LineIcons.heartbeat, iconColor: CardColors.red, subTitle: 'Learn Covid-19 treatments', title: 'Prevention & treatment',),
SizedBox(height: hp(3)),
InformationTitleCard(icon: Icons.info, iconColor: Color(0xFFe7f5fe), subTitle: 'What to do if you get the virus', title: 'What to do',),
InformationTitleCard(icon: LineIcons.question_circle, iconColor:CardColors.green, subTitle: 'What to do if you get the virus', title: 'What to do',),
],
)
),
Expand Down

0 comments on commit 22ba4dd

Please sign in to comment.