page_land.dart 1.8 KB

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