我必须在颤振中使用时钟向导,如果直接插入正文中,它可以正常工作,但我想在列中使用它,但它显示错误。我试图将它用作另一个有状态的小部件并在列的子级内部调用,但仍然出现错误。任何帮助..???
import 'package:analog_clock_example/demo.dart';
import 'package:flutter/material.dart';
import 'package:analog_clock/analog_clock.dart';
void main() => runApp(MyApp());
//void main() => runDemo();
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) => MaterialApp(
home: Scaffold(
body: AnalogClock(),
));
}