Commit 848195bd authored by indika N kumara's avatar indika N kumara

Merge branch 'I_GUIDER_PHASE_02_NK' into 'master'

Added some button adjustments

See merge request !15
parents 8b0c891c b36f5ad6
...@@ -9,7 +9,9 @@ class HeartRateScreen extends StatelessWidget { ...@@ -9,7 +9,9 @@ class HeartRateScreen extends StatelessWidget {
appBar: AppBar( appBar: AppBar(
title: Text('Heart Rate Detector'), title: Text('Heart Rate Detector'),
), ),
body: Column( body: Container(
color: Colors.white,
child: Column(
children: [ children: [
Padding( Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),
...@@ -19,14 +21,29 @@ class HeartRateScreen extends StatelessWidget { ...@@ -19,14 +21,29 @@ class HeartRateScreen extends StatelessWidget {
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
ElevatedButton( Padding(
padding: const EdgeInsets.fromLTRB(8,70,8,8),
child: SizedBox(
height: 70,
width: 350,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: Colors.red[300],
elevation: 15,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12)
)
),
onPressed: () => Navigator.push(context, MaterialPageRoute(builder: (context) => HomePage(),)), onPressed: () => Navigator.push(context, MaterialPageRoute(builder: (context) => HomePage(),)),
child: Text('Measure Heart Rate'), child: Text('Measure Heart Rate'),
), ),
),
),
], ],
), ),
], ],
), ),
),
); );
} }
} }
...@@ -11,7 +11,9 @@ class invoker extends StatelessWidget { ...@@ -11,7 +11,9 @@ class invoker extends StatelessWidget {
appBar: AppBar( appBar: AppBar(
title: Text('Face Mask Detector'), title: Text('Face Mask Detector'),
), ),
body: Column( body: Container(
color: Colors.white,
child: Column(
children: [ children: [
Padding( Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),
...@@ -21,14 +23,29 @@ class invoker extends StatelessWidget { ...@@ -21,14 +23,29 @@ class invoker extends StatelessWidget {
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
ElevatedButton( Padding(
padding: const EdgeInsets.fromLTRB(8,70,8,8),
child: SizedBox(
height: 70,
width: 350,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: Colors.blue[300],
elevation: 15,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12)
)
),
onPressed: () => invokeCamera(), onPressed: () => invokeCamera(),
child: Text('Detect Mask'), child: Text('Detect Mask'),
), ),
),
),
], ],
), ),
], ],
), ),
),
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment