摘要:
Flutter的核心设计思想便是“一切皆Widget” 1、应用入口main函数,runApp功能是启动Flutter应用,它接受一个 Widget参数 void main() { runApp(const MyApp()); } 2、MyApp 继承了 StatelessWidget类,可以看出应 阅读全文
摘要:
import 'package:flutter/material.dart'; void main() { runApp(const GoWaterMyApp()); } class GoWaterMyApp extends StatelessWidget { const GoWaterMyApp( 阅读全文
摘要:
import 'package:flutter/material.dart'; void main() { runApp(const GoWaterMyApp()); } class GoWaterMyApp extends StatelessWidget { const GoWaterMyApp( 阅读全文
摘要:
import 'package:flutter/material.dart'; import 'package:gowater/widget/buy-water.dart'; import 'package:gowater/widget/history.dart'; // // void main( 阅读全文