这是错误消息
compiler message: Unhandled exception:
Crash when compiling file:///C:/Users/Anton/AndroidStudioProjects /kontaktdaten_app/lib/Pages/landingPage.dart,
at character offset 136:
lib/Pages/landingPage.dart:9:16: Internal problem: Unhandled () → void => dart.core::print("Tapped") in defaultTreeNode.
onTap: () => print("Tapped"),
这是我的代码
import 'package:flutter/material.dart';
class LandingPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Material(
color: Colors.blueAccent,
child: InkWell(
onTap: () => print("Tapped"),
child: new Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
new Text("Tap to Start!", style: new TextStyle(color: Colors.white, fontSize: 50.0)),
],
),
)
);
}
}
我更新到了最新版本,但它并没有喔。所以请帮助我:D ty