Skip to content

Commit

Permalink
Replace share on assessment screen with Stay Safe
Browse files Browse the repository at this point in the history
  • Loading branch information
ferndot committed Mar 21, 2020
1 parent 0cad0dc commit ccaebb2
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/src/ui/screens/assessment/assessments/negative.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';

import 'package:coronavirus_diary/src/ui/widgets/share.dart';
import 'package:coronavirus_diary/src/ui/widgets/stay_safe.dart';

class NegativeAssessment extends StatefulWidget {
@override
Expand Down Expand Up @@ -52,7 +52,7 @@ class _NegativeAssessmentState extends State<NegativeAssessment> {
textAlign: TextAlign.center,
),
),
ShareApp(),
StaySafe(),
],
),
);
Expand Down
4 changes: 2 additions & 2 deletions lib/src/ui/screens/assessment/assessments/positive.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';

import 'package:coronavirus_diary/src/ui/widgets/share.dart';
import 'package:coronavirus_diary/src/ui/widgets/stay_safe.dart';

class PositiveAssessment extends StatefulWidget {
@override
Expand Down Expand Up @@ -51,7 +51,7 @@ class _PositiveAssessmentState extends State<PositiveAssessment> {
textAlign: TextAlign.center,
),
),
ShareApp(),
StaySafe(),
],
),
);
Expand Down
40 changes: 40 additions & 0 deletions lib/src/ui/widgets/stay_safe.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import 'package:flutter/material.dart';

import 'package:coronavirus_diary/src/ui/widgets/tutorial_step.dart';

class StaySafe extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
color: Colors.white.withOpacity(0.2),
padding: EdgeInsets.symmetric(horizontal: 40, vertical: 20),
child: Column(
children: <Widget>[
Container(
margin: EdgeInsets.only(bottom: 10),
child: Text(
"Stay Safe",
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.title,
),
),
TutorialStep(
text: 'Wash your hands.',
number: 1,
leadingBackgroundColor: Colors.white.withOpacity(0.2),
),
TutorialStep(
text: 'Limit contact with other people.',
number: 2,
leadingBackgroundColor: Colors.white.withOpacity(0.2),
),
TutorialStep(
text: 'Check back in if you continue to experience symptoms.',
number: 3,
leadingBackgroundColor: Colors.white.withOpacity(0.2),
),
],
),
);
}
}

0 comments on commit ccaebb2

Please sign in to comment.