view.dart 757 B

1234567891011121314151617181920212223242526272829303132333435
  1. import 'package:flutter/material.dart';
  2. class CanvasPlayerView extends StatefulWidget {
  3. const CanvasPlayerView({Key? key}) : super(key: key);
  4. @override
  5. State<StatefulWidget> createState() => _CanvasPlayerViewState();
  6. }
  7. class _CanvasPlayerViewState extends State<CanvasPlayerView> {
  8. @override
  9. Widget build(BuildContext context) {
  10. return Scaffold(
  11. appBar: AppBar(
  12. title: const Text('基于Canvas的播放器'),
  13. ),
  14. body: Center(
  15. child: Column(
  16. mainAxisSize: MainAxisSize.max,
  17. children: [
  18. SizedBox(
  19. height: 160,
  20. child: Container(),
  21. ),
  22. ],
  23. ),
  24. ),
  25. );
  26. }
  27. @override
  28. void dispose() {
  29. super.dispose();
  30. }
  31. }