bounding.dart 871 B

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