Skip to content

Commit b944e8e

Browse files
author
Alexandr
committed
update main screen design
1 parent f541720 commit b944e8e

File tree

7 files changed

+168
-271
lines changed

7 files changed

+168
-271
lines changed

assets/png/car.png

3 MB
Loading

lib/presentation/screens/general/general_screen.dart

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import 'package:auto_route/annotations.dart';
22
import 'package:flutter/material.dart';
33
import 'package:nested/nested.dart';
4-
import 'package:pixel_app_flutter/presentation/app/extensions.dart';
54
import 'package:pixel_app_flutter/presentation/screens/general/widgets/car_widget.dart';
65
import 'package:pixel_app_flutter/presentation/screens/general/widgets/gear_widget.dart';
76
import 'package:pixel_app_flutter/presentation/screens/general/widgets/general_interfaces_state_error_listener.dart';
@@ -16,6 +15,7 @@ import 'package:pixel_app_flutter/presentation/widgets/app/organisms/screen_data
1615
import 'package:pixel_app_flutter/presentation/widgets/common/atoms/responsive_padding.dart';
1716
import 'package:pixel_app_flutter/presentation/widgets/common/molecules/speed_widget.dart';
1817
import 'package:pixel_app_flutter/presentation/widgets/common/molecules/statistic_widget.dart';
18+
import 'package:pixel_app_flutter/presentation/widgets/common/organisms/bottom_interfaces_menu.dart';
1919
import 'package:pixel_app_flutter/presentation/widgets/tablet/molecules/blinker_button.dart';
2020
import 'package:pixel_app_flutter/presentation/widgets/tablet/organisms/tablet_upper_info_panel.dart';
2121
import 'package:re_widgets/re_widgets.dart';
@@ -68,38 +68,40 @@ class TabletGeneralScreenBody extends StatelessWidget {
6868
final size = MediaQuery.sizeOf(context);
6969
final height = size.height;
7070

71-
return Padding(
72-
padding: const EdgeInsets.symmetric(horizontal: 32, vertical: 37),
73-
child: Stack(
74-
children: [
75-
SizedBox(
76-
width: size.width,
77-
height: height,
78-
),
79-
const Positioned(
80-
top: 0,
81-
left: 0,
82-
right: 0,
83-
child: TabletUpperInfoPanel(),
84-
),
85-
Positioned(
86-
right: 0,
87-
left: 0,
88-
bottom: height * .3,
89-
child: const CarWidget(),
90-
),
91-
Positioned(
92-
left: 10,
93-
top: 120,
94-
child: GearWidget(screenSize: size),
95-
),
96-
const Positioned(
97-
right: 0,
98-
top: 0,
99-
child: BlinkerButton(),
71+
return Stack(
72+
children: [
73+
SizedBox(
74+
width: size.width,
75+
height: height,
76+
),
77+
const CarWidget(),
78+
const Positioned(
79+
top: 0,
80+
left: 0,
81+
right: 0,
82+
child: TabletUpperInfoPanel(),
83+
),
84+
Positioned(
85+
left: 10,
86+
top: 120,
87+
child: GearWidget(screenSize: size),
88+
),
89+
const Positioned(
90+
right: 0,
91+
top: 0,
92+
child: BlinkerButton(),
93+
),
94+
Positioned(
95+
left: 0,
96+
right: 0,
97+
bottom: 0,
98+
child: Padding(
99+
padding: const EdgeInsets.symmetric(horizontal: 200)
100+
.copyWith(bottom: 33),
101+
child: const BottomInterfacesMenu(),
100102
),
101-
],
102-
),
103+
),
104+
],
103105
);
104106
}
105107
}

0 commit comments

Comments
 (0)