Skip to content

Commit

Permalink
changed: theme (0xBDE4F5) with shadows 0x86A2AE and 0xF4FFFF
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhav-yb committed May 11, 2021
1 parent ead18d3 commit 0419a25
Show file tree
Hide file tree
Showing 5 changed files with 165 additions and 99 deletions.
27 changes: 14 additions & 13 deletions lib/classes_and_modules/listViewBuilder_sessions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,30 @@ class _ListViewSessionsState extends State<ListViewSessions> {
itemCount: c.length,
itemBuilder: (context, index) {
return Container(
margin: EdgeInsets.fromLTRB(7, 5, 7, 5),
margin: EdgeInsets.fromLTRB(8, 7, 8, 7),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(8)),
color: Color(0xffbde4f5),
borderRadius: BorderRadius.all(Radius.circular(15)),
boxShadow: [
BoxShadow(
color: Color(0xff8f6ac5),
offset: Offset(1, 1),
blurRadius: 2,
color: Color(0xff86a2ae),
offset: Offset(1.5, 1.5),
blurRadius: 3,
spreadRadius: 3,
),
BoxShadow(
color: Color(0xffc190ff),
offset: Offset(-1, -1),
blurRadius: 3,
spreadRadius: 2,
color: Color(0xfff4ffff),
offset: Offset(-1.5, -1.5),
blurRadius: 4,
spreadRadius: 1,
),
],
),
child: ExpansionTile(
title: Text(
c[index].name,
style: TextStyle(
color: Colors.white,
color: Colors.black87,
),
),
subtitle: Row(
Expand All @@ -52,14 +53,14 @@ class _ListViewSessionsState extends State<ListViewSessions> {
child: Text(
c[index].address,
style: TextStyle(
color: Colors.white,
color: Colors.black87,
),
),
),
Text(
'Min Age: ${c[index].minAgeLimit}',
style: TextStyle(
color: Colors.white,
color: Colors.black87,
),
)
],
Expand All @@ -76,7 +77,7 @@ class _ListViewSessionsState extends State<ListViewSessions> {
'Available slots: ${c[index].availableCapacity}',
style: TextStyle(
fontSize: 15,
color: Colors.white,
color: Colors.black87,
),
),
),
Expand Down
62 changes: 53 additions & 9 deletions lib/classes_and_modules/reusable_functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,74 @@ Future<void> showDialog(BuildContext context, String popUntilRoute) async {
return Align(
alignment: Alignment.bottomCenter,
child: Container(
height: 250,
height: 200,
width: 300,
child: Container(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'No Centers available!',
style: TextStyle(
fontSize: 25,
color: Colors.white,
fontSize: 20,
color: Colors.black54,
),
),
TextButton(
child: Text('Okay'),
onPressed: () {
Navigator.popUntil(context, ModalRoute.withName(popUntilRoute));
},
SizedBox(height: 10,),
Container(
height: 40,
decoration: BoxDecoration(
color: Color(0xffbde4f5),
borderRadius: BorderRadius.all(Radius.circular(15)),
boxShadow: [
BoxShadow(
color: Color(0xff86a2ae),
offset: Offset(1.5, 1.5),
blurRadius: 3,
spreadRadius: 3,
),
BoxShadow(
color: Color(0xfff4ffff),
offset: Offset(-1.5, -1.5),
blurRadius: 4,
spreadRadius: 1,
),
],
),
child: TextButton(
child: Text(
'Okay',
style: TextStyle(
color: Colors.black87,
fontSize: 20,
),
),
onPressed: () {
Navigator.popUntil(context, ModalRoute.withName(popUntilRoute));
},
),
),
],
),
),
margin: EdgeInsets.only(bottom: 50, left: 12, right: 12),
decoration: BoxDecoration(
color: Color(0xffa87de8),
color: Color(0xffbde4f5),
borderRadius: BorderRadius.circular(40),
boxShadow: [
BoxShadow(
color: Color(0xff86a2ae),
offset: Offset(1.5, 1.5),
blurRadius: 3,
spreadRadius: 3,
),
BoxShadow(
color: Color(0xfff4ffff),
offset: Offset(-1.5, -1.5),
blurRadius: 4,
spreadRadius: 1,
),
],
),
),
);
Expand Down
74 changes: 45 additions & 29 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,26 @@ void main()
runApp(MaterialApp(
theme: ThemeData(
fontFamily: 'RobotoSlab',
scaffoldBackgroundColor: Color(0xffa87de8),
scaffoldBackgroundColor: Color(0xffbde4f5),
primaryTextTheme: TextTheme(
headline6: TextStyle(
color: Colors.black87,
)
),
appBarTheme: AppBarTheme(
color: Color(0xffa87de8),
color: Color(0xffbde4f5),
iconTheme: IconThemeData(
color: Colors.black87,
),
titleTextStyle: TextStyle(
color: Colors.black87,
),
elevation: 0,
),
buttonTheme: ButtonThemeData(
buttonColor: Color(0xffa87de8),
buttonColor: Color(0xffbde4f5),
),
dividerColor: Colors.transparent,
),
routes: {
'/': (context) => HomeScreen(),
Expand All @@ -33,7 +45,9 @@ class HomeScreen extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Vaccine Slot Checker'),
title: Text(
'Vaccine Slot Checker',
),
),
body: Center(
child: Column(
Expand All @@ -42,18 +56,19 @@ class HomeScreen extends StatelessWidget {
Container(
width: (MediaQuery.of(context).size.width)/1.5,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(12)),
color: Color(0xffbde4f5),
borderRadius: BorderRadius.all(Radius.circular(15)),
boxShadow: [
BoxShadow(
color: Color(0xff8f6ac5),
offset: Offset(1, 1),
blurRadius: 2,
spreadRadius: 3,
color: Color(0xff86a2ae),
offset: Offset(1.5, 1.5),
blurRadius: 3,
spreadRadius: 4,
),
BoxShadow(
color: Color(0xffc190ff),
offset: Offset(-1, -1),
blurRadius: 3,
color: Color(0xfff4ffff),
offset: Offset(-2, -2),
blurRadius: 4,
spreadRadius: 2,
),
]
Expand All @@ -62,7 +77,7 @@ class HomeScreen extends StatelessWidget {
child: Text(
"Search By PIN",
style: TextStyle(
color: Colors.white,
color: Colors.black87,
fontSize: 25,
),
),
Expand All @@ -75,27 +90,28 @@ class HomeScreen extends StatelessWidget {
Container(
width: (MediaQuery.of(context).size.width)/1.5,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(12)),
boxShadow: [
BoxShadow(
color: Color(0xff8f6ac5),
offset: Offset(1, 1),
blurRadius: 2,
spreadRadius: 3,
),
BoxShadow(
color: Color(0xffc190ff),
offset: Offset(-1, -1),
blurRadius: 3,
spreadRadius: 2,
),
],
color: Color(0xffbde4f5),
borderRadius: BorderRadius.all(Radius.circular(15)),
boxShadow: [
BoxShadow(
color: Color(0xff86a2ae),
offset: Offset(1.5, 1.5),
blurRadius: 3,
spreadRadius: 4,
),
BoxShadow(
color: Color(0xfff4ffff),
offset: Offset(-2, -2),
blurRadius: 4,
spreadRadius: 2,
),
],
),
child: TextButton(
child: Text(
"Search By District",
style: TextStyle(
color: Colors.white,
color: Colors.black87,
fontSize: 25,
),
),
Expand Down
61 changes: 32 additions & 29 deletions lib/pages/searchByDistrict.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,24 +98,25 @@ class _SearchByDistrictState extends State<SearchByDistrict> {
Container(
width: MediaQuery.of(context).size.width/1.4,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(8)),
color: Color(0xffbde4f5),
borderRadius: BorderRadius.all(Radius.circular(15)),
boxShadow: [
BoxShadow(
color: Color(0xff8f6ac5),
offset: Offset(1, 1),
blurRadius: 2,
spreadRadius: 3,
color: Color(0xff86a2ae),
offset: Offset(1.5, 1.5),
blurRadius: 3,
spreadRadius: 4,
),
BoxShadow(
color: Color(0xffc190ff),
offset: Offset(-1, -1),
blurRadius: 3,
color: Color(0xfff4ffff),
offset: Offset(-2, -2),
blurRadius: 4,
spreadRadius: 2,
),
],
),
child: DropdownButton<String>(
dropdownColor: Color(0xffa87de8),
dropdownColor: Color(0xffbde4f5),
underline: Container(),
icon: Icon(Icons.arrow_downward_rounded, color: Colors.blue,),
hint: Container(
Expand All @@ -140,7 +141,7 @@ class _SearchByDistrictState extends State<SearchByDistrict> {
child: Text(
stateName,
style: TextStyle(
color: Colors.white,
color: Colors.black87,
),
),
),
Expand All @@ -166,24 +167,25 @@ class _SearchByDistrictState extends State<SearchByDistrict> {
Container(
width: MediaQuery.of(context).size.width/1.4,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(8)),
color: Color(0xffbde4f5),
borderRadius: BorderRadius.all(Radius.circular(15)),
boxShadow: [
BoxShadow(
color: Color(0xff8f6ac5),
offset: Offset(1, 1),
blurRadius: 2,
spreadRadius: 3,
color: Color(0xff86a2ae),
offset: Offset(1.5, 1.5),
blurRadius: 3,
spreadRadius: 4,
),
BoxShadow(
color: Color(0xffc190ff),
offset: Offset(-1, -1),
blurRadius: 3,
color: Color(0xfff4ffff),
offset: Offset(-2, -2),
blurRadius: 4,
spreadRadius: 2,
),
],
),
child: DropdownButton<String>(
dropdownColor: Color(0xffa87de8),
dropdownColor: Color(0xffbde4f5),
underline: Container(),
icon: Icon(Icons.arrow_downward_rounded, color: Colors.blue,),
hint: Container(
Expand All @@ -205,7 +207,7 @@ class _SearchByDistrictState extends State<SearchByDistrict> {
child: Text(
districtName,
style: TextStyle(
color: Colors.white,
color: Colors.black87,
),
),
),
Expand All @@ -222,18 +224,19 @@ class _SearchByDistrictState extends State<SearchByDistrict> {
Container(
height: 40,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(10)),
color: Color(0xffbde4f5),
borderRadius: BorderRadius.all(Radius.circular(15)),
boxShadow: [
BoxShadow(
color: Color(0xff8f6ac5),
offset: Offset(1, 1),
blurRadius: 2,
spreadRadius: 3,
color: Color(0xff86a2ae),
offset: Offset(1.5, 1.5),
blurRadius: 3,
spreadRadius: 4,
),
BoxShadow(
color: Color(0xffc190ff),
offset: Offset(-1, -1),
blurRadius: 3,
color: Color(0xfff4ffff),
offset: Offset(-2, -2),
blurRadius: 4,
spreadRadius: 2,
),
],
Expand All @@ -243,7 +246,7 @@ class _SearchByDistrictState extends State<SearchByDistrict> {
'Search',
style: TextStyle(
fontSize: 20,
color: Colors.white,
color: Colors.black87,
),
),
onPressed: () {
Expand Down
Loading

0 comments on commit 0419a25

Please sign in to comment.