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