In flutter string text are directly set to the TextField
widget like:
new Text(\'Hello, How are you?\')
Is correct way ? or we ca
create "Strings.dart" file and add the below line==>
class Strings
{
static String welcomeScreen="WelCome Page";
static String loadingMessage="Loading Please Wait...!";
}
And then call the file using the below line using the widget
Text(Strings.loadingMessage)
Make sure that the String.dart file has been imported