Skip to content

Instantly share code, notes, and snippets.

@muxueqz
Created April 12, 2022 06:38
Show Gist options
  • Save muxueqz/ded1c6d95f879f98825db07ac8016bd8 to your computer and use it in GitHub Desktop.
Save muxueqz/ded1c6d95f879f98825db07ac8016bd8 to your computer and use it in GitHub Desktop.
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