connected_view.dart 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import 'package:eitc_erm_dental_flutter/generated/assets.dart';
  2. import 'package:eitc_erm_dental_flutter/widget/main_button.dart';
  3. import 'package:flutter/material.dart';
  4. import 'package:flutter_screenutil/flutter_screenutil.dart';
  5. import '../../../funcs.dart';
  6. ///已连接界面
  7. class ConnectedView extends StatelessWidget {
  8. final void Function() startVideo;
  9. const ConnectedView({super.key, required this.startVideo});
  10. @override
  11. Widget build(BuildContext context) {
  12. return Column(
  13. children: [
  14. Expanded(
  15. child: Column(
  16. children: [
  17. SizedBox(
  18. height: 86.h,
  19. ),
  20. Image.asset(
  21. Assets.imagesConnectedDevice,
  22. width: 96.w,
  23. height: 322.h,
  24. fit: BoxFit.fill,
  25. ),
  26. SizedBox(height: 36.h),
  27. Text(
  28. getS().deviceHasConnected,
  29. style:
  30. TextStyle(fontSize: 16.sp, color: const Color(0xFF00A715)),
  31. ),
  32. ],
  33. ),
  34. ),
  35. Container(
  36. padding: EdgeInsets.fromLTRB(16.w, 0.h, 16.w, 34.h),
  37. width: double.infinity,
  38. child: MainButton(
  39. onPressed: startVideo,
  40. text: getS().startShot,
  41. ),
  42. ),
  43. ],
  44. );
  45. }
  46. }