import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget{
@override
Widget build(BuildContext context) {
// TODO: implement build
return IndexHome();
}
}
class IndexHome extends StatelessWidget {
@override
Widget build(BuildContext context) {
// TODO: implement build
return Center(
child: Text(
'你好',
textDirection: TextDirection.ltr,
style: TextStyle(
fontSize: 20.0,
color: Colors.yellow
),
)
);
}
}
练习main.dart1
猜你喜欢
转载自www.cnblogs.com/zhaofeis/p/12326109.html
今日推荐
周排行