|
|
@ -4,6 +4,7 @@ import 'package:carousel_slider/carousel_slider.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/smart_watch_health_data/health_data_list.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/smart_watch_health_data/health_data_list.dart';
|
|
|
|
import 'package:diplomaticquarterapp/services/smartwatch_integration/SmartWatchIntegrationService.dart';
|
|
|
|
import 'package:diplomaticquarterapp/services/smartwatch_integration/SmartWatchIntegrationService.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:smart_progress_bar/smart_progress_bar.dart';
|
|
|
|
import 'package:smart_progress_bar/smart_progress_bar.dart';
|
|
|
|
import 'package:url_launcher/url_launcher.dart';
|
|
|
|
import 'package:url_launcher/url_launcher.dart';
|
|
|
@ -88,8 +89,9 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
width: 70.0,
|
|
|
|
width: 70.0,
|
|
|
|
height: 70.0),
|
|
|
|
height: 70.0),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
|
|
|
|
width: MediaQuery.of(context).size.width*0.22,
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
"Apple Watch Series 1",
|
|
|
|
"Apple Watch Series 1", overflow: TextOverflow.clip,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 12.0)),
|
|
|
|
fontSize: 12.0)),
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -108,8 +110,9 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
width: 70.0,
|
|
|
|
width: 70.0,
|
|
|
|
height: 70.0),
|
|
|
|
height: 70.0),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
|
|
|
|
width: MediaQuery.of(context).size.width*0.22,
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
"Apple Watch Series 2",
|
|
|
|
"Apple Watch Series 2", overflow: TextOverflow.clip,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 12.0)),
|
|
|
|
fontSize: 12.0)),
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -135,8 +138,9 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
width: 70.0,
|
|
|
|
width: 70.0,
|
|
|
|
height: 70.0),
|
|
|
|
height: 70.0),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
|
|
|
|
width: MediaQuery.of(context).size.width*0.22,
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
"Apple Watch Series 3",
|
|
|
|
"Apple Watch Series 3", overflow: TextOverflow.clip,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 12.0)),
|
|
|
|
fontSize: 12.0)),
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -155,8 +159,9 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
width: 70.0,
|
|
|
|
width: 70.0,
|
|
|
|
height: 70.0),
|
|
|
|
height: 70.0),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
|
|
|
|
width: MediaQuery.of(context).size.width*0.22,
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
"Apple Watch Series 4",
|
|
|
|
"Apple Watch Series 4", overflow: TextOverflow.clip ,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 12.0)),
|
|
|
|
fontSize: 12.0)),
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -182,8 +187,9 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
width: 70.0,
|
|
|
|
width: 70.0,
|
|
|
|
height: 70.0),
|
|
|
|
height: 70.0),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
|
|
|
|
width: MediaQuery.of(context).size.width*0.22,
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
"Apple Watch Series 5",
|
|
|
|
"Apple Watch Series 5", overflow: TextOverflow.clip,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 12.0)),
|
|
|
|
fontSize: 12.0)),
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -202,8 +208,9 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
width: 70.0,
|
|
|
|
width: 70.0,
|
|
|
|
height: 70.0),
|
|
|
|
height: 70.0),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
|
|
|
|
width: MediaQuery.of(context).size.width*0.22,
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
"Apple Watch Series 6",
|
|
|
|
"Apple Watch Series 6", overflow: TextOverflow.clip,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 12.0)),
|
|
|
|
fontSize: 12.0)),
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -229,7 +236,8 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
width: 70.0,
|
|
|
|
width: 70.0,
|
|
|
|
height: 70.0),
|
|
|
|
height: 70.0),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
child: Text("Mi Band 3",
|
|
|
|
width: MediaQuery.of(context).size.width*0.22,
|
|
|
|
|
|
|
|
child: Text("Mi Band 3", overflow: TextOverflow.clip,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 12.0)),
|
|
|
|
fontSize: 12.0)),
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -248,7 +256,8 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
width: 70.0,
|
|
|
|
width: 70.0,
|
|
|
|
height: 70.0),
|
|
|
|
height: 70.0),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
child: Text("Mi Band 4",
|
|
|
|
width: MediaQuery.of(context).size.width*0.22,
|
|
|
|
|
|
|
|
child: Text("Mi Band 4", overflow: TextOverflow.clip,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 12.0)),
|
|
|
|
fontSize: 12.0)),
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -417,9 +426,9 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
child: CarouselSlider(
|
|
|
|
child: CarouselSlider(
|
|
|
|
carouselController: buttonCarouselController,
|
|
|
|
carouselController: buttonCarouselController,
|
|
|
|
options: CarouselOptions(
|
|
|
|
options: CarouselOptions(
|
|
|
|
enableInfiniteScroll: false,
|
|
|
|
// enableInfiniteScroll: true,
|
|
|
|
viewportFraction: 0.95,
|
|
|
|
viewportFraction: 0.99,
|
|
|
|
height: MediaQuery.of(context).size.height * 0.9),
|
|
|
|
height: MediaQuery.of(context).size.height*1.02 ),
|
|
|
|
items: [1, 2].map((i) {
|
|
|
|
items: [1, 2].map((i) {
|
|
|
|
return Builder(
|
|
|
|
return Builder(
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
builder: (BuildContext context) {
|
|
|
@ -427,7 +436,8 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
width: MediaQuery.of(context).size.width,
|
|
|
|
width: MediaQuery.of(context).size.width,
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 5.0),
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 5.0),
|
|
|
|
child: Card(
|
|
|
|
child: Card(
|
|
|
|
margin: EdgeInsets.fromLTRB(8.0, 16.0, 8.0, 8.0),
|
|
|
|
margin: EdgeInsets.only(top:16.0 , bottom: 8.0),
|
|
|
|
|
|
|
|
// fromLTRB(8.0, 16.0, 8.0, 8.0),
|
|
|
|
color: Colors.white.withOpacity(1.0),
|
|
|
|
color: Colors.white.withOpacity(1.0),
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
@ -457,8 +467,9 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
width: 70.0,
|
|
|
|
width: 70.0,
|
|
|
|
height: 70.0),
|
|
|
|
height: 70.0),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
|
|
|
|
width: MediaQuery.of(context).size.width*0.22,
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
"Huawei Watch 2",
|
|
|
|
"Huawei Watch 2", overflow: TextOverflow.clip,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 12.0)),
|
|
|
|
fontSize: 12.0)),
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -477,8 +488,10 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
width: 70.0,
|
|
|
|
width: 70.0,
|
|
|
|
height: 70.0),
|
|
|
|
height: 70.0),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
|
|
|
|
width: MediaQuery.of(context).size.width*0.22,
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
"Mobovi TicWatch E2",
|
|
|
|
"Mobovi TicWatch E2",
|
|
|
|
|
|
|
|
overflow: TextOverflow.clip,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 12.0)),
|
|
|
|
fontSize: 12.0)),
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -504,7 +517,8 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
width: 70.0,
|
|
|
|
width: 70.0,
|
|
|
|
height: 70.0),
|
|
|
|
height: 70.0),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
child: Text("Huawei Watch",
|
|
|
|
width: MediaQuery.of(context).size.width*0.22,
|
|
|
|
|
|
|
|
child: Text("Huawei Watch", overflow: TextOverflow.clip,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 12.0)),
|
|
|
|
fontSize: 12.0)),
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -523,7 +537,8 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
width: 70.0,
|
|
|
|
width: 70.0,
|
|
|
|
height: 70.0),
|
|
|
|
height: 70.0),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
child: Text("Fossil Sport",
|
|
|
|
width: MediaQuery.of(context).size.width*0.22,
|
|
|
|
|
|
|
|
child: Text("Fossil Sport", overflow: TextOverflow.clip,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 12.0)),
|
|
|
|
fontSize: 12.0)),
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -549,8 +564,9 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
width: 70.0,
|
|
|
|
width: 70.0,
|
|
|
|
height: 70.0),
|
|
|
|
height: 70.0),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
|
|
|
|
width: MediaQuery.of(context).size.width*0.22,
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
"MisFit Vapor 2",
|
|
|
|
"MisFit Vapor 2", overflow: TextOverflow.clip,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 12.0)),
|
|
|
|
fontSize: 12.0)),
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -569,8 +585,9 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
width: 70.0,
|
|
|
|
width: 70.0,
|
|
|
|
height: 70.0),
|
|
|
|
height: 70.0),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
|
|
|
|
width: MediaQuery.of(context).size.width*0.22,
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
"LG Watch Sport",
|
|
|
|
"LG Watch Sport", overflow: TextOverflow.clip,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 12.0)),
|
|
|
|
fontSize: 12.0)),
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -596,7 +613,8 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
width: 70.0,
|
|
|
|
width: 70.0,
|
|
|
|
height: 70.0),
|
|
|
|
height: 70.0),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
child: Text("Mi Band 3",
|
|
|
|
width: MediaQuery.of(context).size.width*0.22,
|
|
|
|
|
|
|
|
child: Text("Mi Band 3", overflow: TextOverflow.clip,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 12.0)),
|
|
|
|
fontSize: 12.0)),
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -615,7 +633,8 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
width: 70.0,
|
|
|
|
width: 70.0,
|
|
|
|
height: 70.0),
|
|
|
|
height: 70.0),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
child: Text("Mi Band 4",
|
|
|
|
width: MediaQuery.of(context).size.width*0.22,
|
|
|
|
|
|
|
|
child: Text("Mi Band 4", overflow: TextOverflow.clip,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 12.0)),
|
|
|
|
fontSize: 12.0)),
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -735,7 +754,7 @@ class _SmartWatchInstructionsState extends State<SmartWatchInstructions> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.fromLTRB(
|
|
|
|
margin: EdgeInsets.fromLTRB(
|
|
|
|
15.0, 95.0, 15.0, 15.0),
|
|
|
|
15.0, 75.0, 15.0, 15.0),
|
|
|
|
child: ButtonTheme(
|
|
|
|
child: ButtonTheme(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius:
|
|
|
|
borderRadius:
|
|
|
|