Commit b36f5ad6 authored by Indika NK's avatar Indika NK

Added some button adjustments

parent 7a717f26
...@@ -9,23 +9,40 @@ class HeartRateScreen extends StatelessWidget { ...@@ -9,23 +9,40 @@ class HeartRateScreen extends StatelessWidget {
appBar: AppBar( appBar: AppBar(
title: Text('Heart Rate Detector'), title: Text('Heart Rate Detector'),
), ),
body: Column( body: Container(
children: [ color: Colors.white,
Padding( child: Column(
padding: const EdgeInsets.all(8.0), children: [
child: Image.asset('lib/assets/images/pulse.gif'), Padding(
), padding: const EdgeInsets.all(8.0),
SizedBox(height: 20), child: Image.asset('lib/assets/images/pulse.gif'),
Column( ),
crossAxisAlignment: CrossAxisAlignment.start, SizedBox(height: 20),
children: [ Column(
ElevatedButton( crossAxisAlignment: CrossAxisAlignment.start,
onPressed: () => Navigator.push(context, MaterialPageRoute(builder: (context) => HomePage(),)), children: [
child: Text('Measure Heart Rate'), 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(),)),
child: Text('Measure Heart Rate'),
),
),
),
],
),
],
),
), ),
); );
} }
......
...@@ -11,23 +11,40 @@ class invoker extends StatelessWidget { ...@@ -11,23 +11,40 @@ class invoker extends StatelessWidget {
appBar: AppBar( appBar: AppBar(
title: Text('Face Mask Detector'), title: Text('Face Mask Detector'),
), ),
body: Column( body: Container(
children: [ color: Colors.white,
Padding( child: Column(
padding: const EdgeInsets.all(8.0), children: [
child: Image.asset('lib/assets/images/wear.gif'), Padding(
), padding: const EdgeInsets.all(8.0),
SizedBox(height: 20), child: Image.asset('lib/assets/images/wear.gif'),
Column( ),
crossAxisAlignment: CrossAxisAlignment.start, SizedBox(height: 20),
children: [ Column(
ElevatedButton( crossAxisAlignment: CrossAxisAlignment.start,
onPressed: () => invokeCamera(), children: [
child: Text('Detect Mask'), 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(),
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