Skip to content

Commit

Permalink
Your deck page redesigned
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelo authored and Marcelo committed May 3, 2020
1 parent 3a412f6 commit 463e59a
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 162 deletions.
3 changes: 2 additions & 1 deletion lib/pages/initial/course_selection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ class _ListPageState extends State<ListPage> {
);

final makeBody = Container(
color: Colors.white,
margin: EdgeInsets.symmetric(vertical: 60.0, horizontal: 20.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
Expand All @@ -155,6 +154,7 @@ class _ListPageState extends State<ListPage> {
));

final bottomAppBar = BottomAppBar(
elevation: 20,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[
Expand Down Expand Up @@ -217,6 +217,7 @@ class _ListPageState extends State<ListPage> {
);

return Scaffold(
backgroundColor: Colors.white,
body: makeBody,
bottomNavigationBar: bottomAppBar,
);
Expand Down
94 changes: 51 additions & 43 deletions lib/pages/readDeck/study.dart
Original file line number Diff line number Diff line change
Expand Up @@ -305,50 +305,58 @@ class _StudyPageState extends State<StudyPage> {
return Column(
children: <Widget>[
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
new DropdownButton<String>(
items: <String>['Espanhol', 'Francês', 'Inglês', 'Português']
.map((String value) {
return new DropdownMenuItem<String>(
value: value,
child: new Text(value),
);
}).toList(),
onChanged: (String value) {
setState(() => input1 = value);
if (value == "Espanhol") {
flutterTts.setLanguage("es-ES");
}
if (value == "Francês") {
flutterTts.setLanguage("fr-FR");
}
if (value == "Inglês") {
flutterTts.setLanguage("en-US");
}
if (value == "Português") {
flutterTts.setLanguage("pt-BR");
}
},
hint: Text(input1,
style: TextStyle(
color: Colors.grey[850],
)),
),
new DropdownButton<String>(
items: <String>['Voz 1', 'Voz 2', 'Voz 3'].map((String value) {
return new DropdownMenuItem<String>(
value: value,
child: new Text(value),
);
}).toList(),
onChanged: (String value) {
setState(() => input2 = value);
},
hint: Text(input2,
style: TextStyle(
color: Colors.grey[850],
)),
SizedBox(),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
new DropdownButton<String>(
items: <String>['Espanhol', 'Francês', 'Inglês', 'Português']
.map((String value) {
return new DropdownMenuItem<String>(
value: value,
child: new Text(value),
);
}).toList(),
onChanged: (String value) {
setState(() => input1 = value);
if (value == "Espanhol") {
flutterTts.setLanguage("es-ES");
}
if (value == "Francês") {
flutterTts.setLanguage("fr-FR");
}
if (value == "Inglês") {
flutterTts.setLanguage("en-US");
}
if (value == "Português") {
flutterTts.setLanguage("pt-BR");
}
},
hint: Text(input1,
style: TextStyle(
color: Colors.grey[850],
)),
),
new DropdownButton<String>(
elevation: 1,
items:
<String>['Voz 1', 'Voz 2', 'Voz 3'].map((String value) {
return new DropdownMenuItem<String>(
value: value,
child: new Text(value),
);
}).toList(),
onChanged: (String value) {
setState(() => input2 = value);
},
hint: Text(input2,
style: TextStyle(
color: Colors.grey[850],
)),
),
],
),
],
),
Expand Down
8 changes: 3 additions & 5 deletions lib/pages/shopping/store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,25 +118,23 @@ class _StorePageState extends State<StorePage> {
Widget _showBody() {
return new Container(
margin: EdgeInsets.symmetric(vertical: 30.0, horizontal: 20.0),
//color: Colors.grey[300],
padding: EdgeInsets.only(bottom: 200),
child: _showNoteList(),
);
}

Widget _showNoteList() {
return Container(
alignment: Alignment.topLeft,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(
'Decks',
'Shop',
style: TextStyle(
color: Colors.black, fontWeight: FontWeight.w600, fontSize: 24),
),
SizedBox(height: 10),
Text(
"Em breve",
"Soon",
style: TextStyle(fontSize: 18, color: Colors.grey),
),
],
Expand Down
Loading

0 comments on commit 463e59a

Please sign in to comment.