Flutter app show red screen while run automatically by this you can fix it.
If you show 'int' is not a subtype of type 'String', that probably error goes to text and you can use toString() and that's it error gone. If you have any query related to a flutter app please comment down.