remote_call.dart 956 B

123456789101112131415161718192021222324252627282930313233343536
  1. import 'package:ctjt_flutter/common/styles.dart';
  2. import 'package:ctjt_flutter/widget/button.dart';
  3. import 'package:ctjt_flutter/widget/title.dart';
  4. import 'package:flutter/material.dart';
  5. // 呼叫测试
  6. class RemoteCallPage extends StatefulWidget {
  7. RemoteCallPage({Key? key}) : super(key: key);
  8. @override
  9. _RemoteCallPageState createState() => _RemoteCallPageState();
  10. }
  11. class _RemoteCallPageState extends State<RemoteCallPage> {
  12. final _formKey = GlobalKey<FormState>();
  13. @override
  14. Widget build(BuildContext context) {
  15. return Form(
  16. key: _formKey,
  17. child: Scaffold(
  18. backgroundColor: Colors.white,
  19. appBar: PageHead(),
  20. body: Container(
  21. padding: Styles.primaryPadding,
  22. child: BigSButton(
  23. text: '测试呼叫',
  24. onPressed: () async {
  25. Navigator.pushNamed(context, '/calling/audioContact');
  26. },
  27. ),
  28. ),
  29. ),
  30. );
  31. }
  32. }