删除了多余的初始化

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 @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
carIpController.text = '192.168.137.34'; carIpController.text = '';
cameraIpController.text = '192.168.137.121'; cameraIpController.text = '';
GlobalSettingState globalSettingState = context.watch<GlobalSettingState>(); GlobalSettingState globalSettingState = context.watch<GlobalSettingState>();
return Scaffold( return Scaffold(
body: globalSettingState.cameraIP != '' && globalSettingState.carIP != '' ? body: globalSettingState.cameraIP != '' && globalSettingState.carIP != '' ?