implementing Smart Watch Integration
|
After Width: | Height: | Size: 130 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 154 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
@ -0,0 +1,145 @@
|
||||
import 'package:diplomaticquarterapp/widgets/buttons/button.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class HealthDataList extends StatefulWidget {
|
||||
@override
|
||||
_HealthDataListState createState() => _HealthDataListState();
|
||||
}
|
||||
|
||||
class _HealthDataListState extends State<HealthDataList> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AppScaffold(
|
||||
appBarTitle: "Smartwatches",
|
||||
isShowAppBar: true,
|
||||
body: Container(
|
||||
height: MediaQuery.of(context).size.height,
|
||||
margin: EdgeInsets.all(20.0),
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Container(
|
||||
child: Image.asset(
|
||||
"assets/images/SmartWatches/heartrate_icon.png",
|
||||
width: 60.0,
|
||||
height: 60.0),
|
||||
),
|
||||
Container(
|
||||
margin: EdgeInsets.fromLTRB(20.0, 0.0, 20.0, 0.0),
|
||||
child: Text("Heart Rate",
|
||||
style: TextStyle(
|
||||
fontSize: 20.0, fontWeight: FontWeight.bold)),
|
||||
),
|
||||
],
|
||||
),
|
||||
Divider(
|
||||
color: Colors.grey[500],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Container(
|
||||
child: Image.asset(
|
||||
"assets/images/SmartWatches/sleep_data.png",
|
||||
width: 60.0,
|
||||
height: 60.0),
|
||||
),
|
||||
Container(
|
||||
margin: EdgeInsets.fromLTRB(20.0, 0.0, 20.0, 0.0),
|
||||
child: Text("Sleep Data",
|
||||
style: TextStyle(
|
||||
fontSize: 20.0, fontWeight: FontWeight.bold)),
|
||||
),
|
||||
],
|
||||
),
|
||||
Divider(
|
||||
color: Colors.grey[500],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Container(
|
||||
child: Image.asset(
|
||||
"assets/images/SmartWatches/heartrate_icon.png",
|
||||
width: 60.0,
|
||||
height: 60.0),
|
||||
),
|
||||
Container(
|
||||
margin: EdgeInsets.fromLTRB(20.0, 0.0, 20.0, 0.0),
|
||||
child: Text("Steps",
|
||||
style: TextStyle(
|
||||
fontSize: 20.0, fontWeight: FontWeight.bold)),
|
||||
),
|
||||
],
|
||||
),
|
||||
Divider(
|
||||
color: Colors.grey[500],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Container(
|
||||
child: Image.asset(
|
||||
"assets/images/SmartWatches/heartrate_icon.png",
|
||||
width: 60.0,
|
||||
height: 60.0),
|
||||
),
|
||||
Container(
|
||||
margin: EdgeInsets.fromLTRB(20.0, 0.0, 20.0, 0.0),
|
||||
child: Text("Distance",
|
||||
style: TextStyle(
|
||||
fontSize: 20.0, fontWeight: FontWeight.bold)),
|
||||
),
|
||||
],
|
||||
),
|
||||
Divider(
|
||||
color: Colors.grey[500],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Container(
|
||||
child: Image.asset(
|
||||
"assets/images/SmartWatches/heartrate_icon.png",
|
||||
width: 60.0,
|
||||
height: 60.0),
|
||||
),
|
||||
Container(
|
||||
margin: EdgeInsets.fromLTRB(20.0, 0.0, 20.0, 0.0),
|
||||
child: Text("Energy",
|
||||
style: TextStyle(
|
||||
fontSize: 20.0, fontWeight: FontWeight.bold)),
|
||||
),
|
||||
],
|
||||
),
|
||||
Divider(
|
||||
color: Colors.grey[500],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
bottomSheet: Container(
|
||||
width: double.infinity,
|
||||
height: MediaQuery.of(context).size.height * 0.1,
|
||||
color: Colors.grey[100],
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
Divider(
|
||||
color: Colors.transparent,
|
||||
),
|
||||
Container(
|
||||
width: MediaQuery.of(context).size.width * 0.8,
|
||||
child: Button(
|
||||
onTap: () {
|
||||
// launch(model.radImageURL);
|
||||
},
|
||||
label: 'Sync Health Data',
|
||||
backgroundColor: Colors.grey[800],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 3.2 KiB |