Skip to content

Commit

Permalink
Finish Dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
aguilaair committed Dec 7, 2021
1 parent 5ffd9e0 commit 3f071da
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
3 changes: 3 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ class MyApp extends StatelessWidget {
),
darkTheme: ThemeData.dark().copyWith(
backgroundColor: const Color(0xff080B27),
cardColor: const Color(0xff050612),
primaryColor: const Color(0xFF262DC9),
primaryColorDark: const Color(0xFF262DC9),
),
home: const MyHomePage(title: 'CovCheck Main Page'),
);
Expand Down
10 changes: 7 additions & 3 deletions lib/widgets/cert_detailed_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,13 @@ class CertDetailedView extends StatelessWidget {
];

return Container(
decoration: const BoxDecoration(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(15), topRight: Radius.circular(15))),
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(15),
topRight: Radius.circular(15),
),
color: Theme.of(context).cardColor,
),
padding: const EdgeInsets.all(8.0),
child: Theme(
data: Theme.of(context).copyWith(dividerColor: Colors.transparent),
Expand Down
7 changes: 6 additions & 1 deletion lib/widgets/cert_spimplified_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,13 @@ class CertInfoViewer extends StatelessWidget {
onPressed: () {
showModalBottomSheet(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(15)),
borderRadius: BorderRadius.circular(15),
),
context: context,
barrierColor:
Theme.of(context).brightness == Brightness.light
? null
: Colors.white30,
builder: (context) {
return CertDetailedView(coseResult: coseResult!);
},
Expand Down
6 changes: 4 additions & 2 deletions lib/widgets/result_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,15 @@ class ResultCard extends StatelessWidget {
),
margin: const EdgeInsets.only(top: 20),
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(15),
topRight: Radius.circular(15),
),
boxShadow: [
BoxShadow(
color: Colors.grey,
color: Theme.of(context).brightness == Brightness.light
? Colors.grey
: const Color(0xff27226A),
blurRadius: 15,
spreadRadius: -3,
)
Expand Down

0 comments on commit 3f071da

Please sign in to comment.