import 'package:flutter/material.dart';
import 'package:my_application_1/pages/home_page.dart';
void main() {
runApp(my_application_1());
}
class my_application_1 extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: home_page()
theme: ThemeData(
primarySwatch: Colors.brown
),
);
}
}
主题中显示错误-Expected to find ','.dart(expected_token)
1条答案
按热度按时间zbq4xfa01#
您在
home: homePage()
后面忘了一个“,”。加进去就行了。