0

I want to write a title of the step in flutter to be on the right the date and the price on the left. how should i do this?

SecretAgentMan
  • 2,856
  • 7
  • 21
  • 41
Mee
  • 1,413
  • 5
  • 24
  • 40
  • You can use Row(), then put your widgets in children[] and then align them using mainAxisAlignment to determine space between them. Check https://docs.flutter.io/flutter/widgets/Row-class.html – Rubens Melo Jan 03 '19 at 19:53
  • It's a title so the expected parameter is a string i can't add a widget row to title – Mee Jan 03 '19 at 19:57
  • got it. why not concatenate a new string ? – Rubens Melo Jan 03 '19 at 20:03
  • The concatenation brings the two strings next to each other. However, i want the first string to be in the right and the other text on the left. – Mee Jan 03 '19 at 20:05
  • add some fixed spaces between them – Rubens Melo Jan 03 '19 at 20:08
  • Why not using the normal title for date which will come on left as title (android) and using actions for you title. Actions will come on the right side of the appbar.? – krishnakumarcn Jan 04 '19 at 06:28

0 Answers0