connect.dart 734 B

123456789101112131415161718192021222324252627282930313233
  1. import 'package:flutter/material.dart';
  2. class DeviceConnecting extends StatelessWidget {
  3. const DeviceConnecting({super.key});
  4. @override
  5. Widget build(BuildContext context) {
  6. return Row(
  7. children: [
  8. Text(
  9. '设备连接中',
  10. style: TextStyle(color: Theme.of(context).primaryColor, fontSize: 24),
  11. ),
  12. const SizedBox(
  13. width: 16,
  14. ),
  15. const SizedBox(
  16. // width: 150,
  17. height: 20,
  18. width: 20,
  19. child: CircularProgressIndicator(
  20. valueColor: AlwaysStoppedAnimation(
  21. Colors.blue,
  22. ),
  23. ),
  24. ),
  25. const SizedBox(
  26. width: 16,
  27. ),
  28. ],
  29. );
  30. }
  31. }