page_land.dart 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. part of 'page_portrait.dart';
  2. class PageLand extends StatelessWidget {
  3. const PageLand({super.key});
  4. @override
  5. Widget build(BuildContext context) {
  6. var height = MediaQuery.of(context).size.height;
  7. height -= MediaQuery.of(context).viewInsets.vertical;
  8. return SizedBox.expand(
  9. child: Container(
  10. color: backgroundColor,
  11. child: Padding(
  12. padding: MediaQuery.of(context).padding,
  13. child: Row(
  14. mainAxisSize: MainAxisSize.min,
  15. children: <Widget>[
  16. const Expanded(
  17. child: Column(
  18. crossAxisAlignment: CrossAxisAlignment.start,
  19. children: <Widget>[
  20. Spacer(),
  21. SystemButtonGroup(),
  22. Spacer(),
  23. Padding(
  24. padding: EdgeInsets.only(left: 40, bottom: 40),
  25. child: DropButton(),
  26. )
  27. ],
  28. ),
  29. ),
  30. _ScreenDecoration(child: Screen.fromHeight(height * 0.8)),
  31. const Expanded(
  32. child: Column(
  33. children: <Widget>[
  34. Spacer(),
  35. DirectionController(),
  36. SizedBox(height: 30),
  37. ],
  38. ),
  39. ),
  40. ],
  41. ),
  42. ),
  43. ),
  44. );
  45. }
  46. }