删除了多余的初始化

This commit is contained in:
梦凌汐 2025-07-03 13:00:29 +08:00
parent 4ee8aaebc4
commit 2e6ca9d2ef

View File

@ -34,8 +34,8 @@ class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext context) {
carIpController.text = '192.168.137.34';
cameraIpController.text = '192.168.137.121';
carIpController.text = '';
cameraIpController.text = '';
GlobalSettingState globalSettingState = context.watch<GlobalSettingState>();
return Scaffold(
body: globalSettingState.cameraIP != '' && globalSettingState.carIP != '' ?