Created
April 12, 2022 06:38
-
-
Save muxueqz/ded1c6d95f879f98825db07ac8016bd8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: Scaffold( | |
body: Center( | |
// child: MyWidget(), | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
Text("Hello world", | |
textAlign: TextAlign.left, | |
), | |
Text("Hello world! I'm Jack. "*4, | |
maxLines: 1, | |
overflow: TextOverflow.ellipsis, | |
), | |
Text("Hello world", | |
textScaleFactor: 1.5, | |
), | |
], | |
), | |
), | |
), | |
); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment