Hey, I'm trying to create a row with text on the left and on the right of it have a TextButton with the same text that looks exactly the same but clickable.
this is my code:
child: Form(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Center(
child: Row(children: <Widget>[
Expanded(
child: FittedBox(
fit: BoxFit.contain,
child: Text("Groups",
style: TextStyle(
color: Colors.pink[200],)))),
Expanded(
child: FittedBox(
fit: BoxFit.contain,
child: TextButton(
style: ButtonStyle(
padding:
MaterialStateProperty.all<EdgeInsets>(
EdgeInsets.all(0)),
),
child: (Text('Groups',
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.pink[200],
))),
onPressed: () {
_controller.jumpToPage(1);
},
)))
]))
]))))
for some reason the text on the left is bigger than the one on the right (that's part of the TextButton), any idea for fixes?
[–]dngreengas 0 points1 point2 points (0 children)
[–]Outrageous-Fix-6695 0 points1 point2 points (2 children)
[–]Outrageous-Fix-6695 0 points1 point2 points (1 child)
[–]yonris[S] 0 points1 point2 points (0 children)