-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4854cb6
commit 68442da
Showing
9 changed files
with
101 additions
and
10 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import 'package:domus/src/screens/smart_speaker/components/connect_speaker.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class Body extends StatelessWidget { | ||
const Body({Key? key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Center(child: ConnectSpeaker()); | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
lib/src/screens/smart_speaker/components/connect_speaker.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import 'package:domus/config/size_config.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class ConnectSpeaker extends StatelessWidget { | ||
const ConnectSpeaker({Key? key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Padding( | ||
padding: const EdgeInsets.symmetric(horizontal: 20.0, vertical: 20), | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.center, | ||
mainAxisAlignment: MainAxisAlignment.spaceEvenly, | ||
children: [ | ||
SizedBox( | ||
height: getProportionateScreenHeight(40), | ||
), | ||
Align( | ||
alignment: Alignment.centerLeft, | ||
child: InkWell( | ||
onTap: () { | ||
Navigator.of(context).pop(); | ||
}, | ||
child: Icon(Icons.arrow_back_outlined), | ||
), | ||
), | ||
Text( | ||
'Kakao Mini C', | ||
style: Theme.of(context).textTheme.headline1, | ||
), | ||
Text( | ||
'Smart Speaker', | ||
style: Theme.of(context).textTheme.headline3, | ||
), | ||
SizedBox( | ||
height: getProportionateScreenHeight(40), | ||
), | ||
Material( | ||
child: Image.asset( | ||
'assets/images/kakao_mini.png', | ||
height: getProportionateScreenHeight(300), | ||
width: getProportionateScreenWidth(150), | ||
fit: BoxFit.contain, | ||
), | ||
color: Colors.transparent, | ||
), | ||
SizedBox( | ||
height: getProportionateScreenHeight(40), | ||
), | ||
OutlinedButton( | ||
onPressed: () {}, | ||
child: Text( | ||
'Connect', | ||
style: Theme.of(context).textTheme.headline3, | ||
), | ||
style: OutlinedButton.styleFrom( | ||
padding: EdgeInsets.symmetric( | ||
horizontal: getProportionateScreenWidth(80), | ||
vertical: getProportionateScreenHeight(10), | ||
), | ||
shape: StadiumBorder(), | ||
), | ||
) | ||
], | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'components/body.dart'; | ||
|
||
class SmartSpeaker extends StatelessWidget { | ||
static String routeName = 'smart-speaker'; | ||
const SmartSpeaker({Key? key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Container(); | ||
return Scaffold( | ||
backgroundColor: Color(0xFFF2F2F2), | ||
body: Body(), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters