flutter text 组件示例
示例图:
入口文件:C:/Users/user/StudioProjects/myflutter/lib/main.dart
import 'package:flutter/material.dart';
import 'package:myflutter/basic/text.dart';
String mytitle = '首页';
void main(List
return runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
// 1.首先,程序进入 flutter 的顶级组件
return MaterialApp(
title: "hello myflatter", // 应用在任务管理器中
共有 0 条评论