我写了这些代码行,Visual Studio和dartpad.dev/flutter中没有错误,但是在这两个代码中我都无法调试,我不知道为什么。有人可以帮我吗...这是代码
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
void main(List<String> args) { MaterialApp(
title: 'zinwar',
home:MyApp() , ); }
class MyApp extends StatefulWidget{
@override State<StatefulWidget> createState() {
return MyAppState() ; }
}
class MyAppState extends State<MyApp> {
@override Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
appBar: AppBar(
backgroundColor: Colors.blue,
actions: <Widget>[],
leading: IconButton(
onPressed: () { },
icon: Icon(Icons.arrow_back),
),
),
body: Center(
child: Text('HELLO I AM ZINWARM NICE TO MEET YOU'),
),
); }
}