Skip to content
Snippets Groups Projects
Commit 69a4c3e1 authored by Benoît Harrault's avatar Benoît Harrault
Browse files

Merge branch '16-make-text-item-clickable' into 'master'

Resolve "Make text item clickable"

Closes #16

See merge request !15
parents 41fa411c e7387b5d
No related branches found
No related tags found
1 merge request!15Resolve "Make text item clickable"
Pipeline #1155 passed
org.gradle.jvmargs=-Xmx1536M org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
app.versionName=1.2.6 app.versionName=1.2.7
app.versionCode=12 app.versionCode=13
...@@ -95,11 +95,7 @@ class Home extends StatelessWidget { ...@@ -95,11 +95,7 @@ class Home extends StatelessWidget {
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
FlatButton( Container(
onPressed: () => pickLetter(myProvider),
child: Text("🔀"),
),
myProvider.letter == '' ? Container() : Container(
margin: EdgeInsets.all(15), margin: EdgeInsets.all(15),
padding: EdgeInsets.all(15), padding: EdgeInsets.all(15),
decoration: BoxDecoration( decoration: BoxDecoration(
...@@ -110,8 +106,10 @@ class Home extends StatelessWidget { ...@@ -110,8 +106,10 @@ class Home extends StatelessWidget {
width: 4, width: 4,
), ),
), ),
child: FlatButton(
onPressed: () => pickLetter(myProvider),
child: Text( child: Text(
myProvider.letter, myProvider.letter == '' ? "🔀" : myProvider.letter,
style: TextStyle( style: TextStyle(
fontSize: 40, fontSize: 40,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
...@@ -119,6 +117,7 @@ class Home extends StatelessWidget { ...@@ -119,6 +117,7 @@ class Home extends StatelessWidget {
), ),
), ),
), ),
),
], ],
), ),
); );
...@@ -133,11 +132,7 @@ class Home extends StatelessWidget { ...@@ -133,11 +132,7 @@ class Home extends StatelessWidget {
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
FlatButton( Container(
onPressed: () => pickCategory(myProvider),
child: Text("🔀"),
),
myProvider.category == '' ? Container() : Container(
margin: EdgeInsets.all(5), margin: EdgeInsets.all(5),
padding: EdgeInsets.all(5), padding: EdgeInsets.all(5),
decoration: BoxDecoration( decoration: BoxDecoration(
...@@ -148,8 +143,10 @@ class Home extends StatelessWidget { ...@@ -148,8 +143,10 @@ class Home extends StatelessWidget {
width: 4, width: 4,
), ),
), ),
child: FlatButton(
onPressed: () => pickCategory(myProvider),
child: Text( child: Text(
myProvider.category, myProvider.category == '' ? "🔀" : myProvider.category,
style: TextStyle( style: TextStyle(
fontSize: 40, fontSize: 40,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
...@@ -157,6 +154,7 @@ class Home extends StatelessWidget { ...@@ -157,6 +154,7 @@ class Home extends StatelessWidget {
), ),
), ),
), ),
),
], ],
), ),
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment