1
0
mirror of https://github.com/nisrulz/flutter-examples.git synced 2025-11-08 12:39:17 +00:00

Added covid-19 example app and Updated the readme (#73)

This commit is contained in:
Mohammed Mehdi
2021-07-26 00:26:58 +05:30
committed by GitHub
parent 48f14caf15
commit 3eaedb619c
72 changed files with 2166 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
import 'package:flutter/material.dart';
// this is the rounded rectangle card widget that appears on the homescreen
Widget infoCard(BuildContext context, String title, String number) {
return Card(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
title,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: MediaQuery.of(context).size.height * 0.03,
),
),
SizedBox(
height: 5.0,
),
Text(
number,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 20.0,
),
),
],
),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(40.0)),
color: Color(0xfff44e3f),
);
}