显示优化
This commit is contained in:
@@ -1557,7 +1557,7 @@ class _MapPageEnterpriseState extends State<MapPageEnterprise> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildWorkPanel() {
|
Widget _buildWorkPanel(headingStatus) {
|
||||||
return BlocBuilder<DevicesCubit, DevicesState>(
|
return BlocBuilder<DevicesCubit, DevicesState>(
|
||||||
builder: (context, state) {
|
builder: (context, state) {
|
||||||
if (_selectedPlot == null || state.pathData == null) {
|
if (_selectedPlot == null || state.pathData == null) {
|
||||||
@@ -1640,7 +1640,7 @@ class _MapPageEnterpriseState extends State<MapPageEnterprise> {
|
|||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
|
|
||||||
// 2. 错误提示(如果加载失败)
|
// 2. 错误提示(如果加载失败)
|
||||||
if (startWorkList.isEmpty || _showHeadingWarn)
|
if (startWorkList.isEmpty || headingStatus == 0)
|
||||||
Row(
|
Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
@@ -1676,7 +1676,7 @@ class _MapPageEnterpriseState extends State<MapPageEnterprise> {
|
|||||||
),
|
),
|
||||||
|
|
||||||
// 航向异常提示 50%
|
// 航向异常提示 50%
|
||||||
if (_showHeadingWarn)
|
if (headingStatus == 0)
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 1,
|
flex: 1,
|
||||||
child: Container(
|
child: Container(
|
||||||
@@ -1715,7 +1715,7 @@ class _MapPageEnterpriseState extends State<MapPageEnterprise> {
|
|||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
height: 50,
|
height: 50,
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
onPressed: state.isLoading || startWorkList.isEmpty || _showHeadingWarn
|
onPressed: state.isLoading || startWorkList.isEmpty || headingStatus == 0
|
||||||
? null
|
? null
|
||||||
: () {
|
: () {
|
||||||
_startWork();
|
_startWork();
|
||||||
@@ -2481,7 +2481,7 @@ class _MapPageEnterpriseState extends State<MapPageEnterprise> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
if (_isWorkPanelOpen) _buildWorkPanel(),
|
if (_isWorkPanelOpen) _buildWorkPanel(headingStatus),
|
||||||
if (_isVideoDialogOpen) _buildVideoPopup(),
|
if (_isVideoDialogOpen) _buildVideoPopup(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user