1.优化补足了首页下拉刷新中对获取场站接口的加入,确保能够实时获取数据并渲染。
2.优化修改了tcp重连机制,具体操作:断开重连时候不再建立新链接 而是将旧链接重置,并重新发送数据。 3.大面积的给项目中的各个页面 手动接入了多语言的支持。同时也调整了相应带来的问题英文长度较大影响原有的样式的问题,已解决了对应的样式不和谐问题。保证了外观的统一性。 4.给项目中的主要操作加了几个核心的操作比如远程遥控和路径规划添加了双层的保护,设置里安全模式,即在此期间对服务器推送的重复登录操作后的自动退出登录做一个拦截 保证操作的安全性。
This commit is contained in:
@@ -22,14 +22,8 @@ class _CustomBottomNavBarState extends State<CustomBottomNavBar>
|
||||
duration: const Duration(milliseconds: 300),
|
||||
vsync: this,
|
||||
);
|
||||
_animation = Tween<double>(
|
||||
begin: 0.0,
|
||||
end: 0.0,
|
||||
).animate(
|
||||
CurvedAnimation(
|
||||
parent: _animationController,
|
||||
curve: Curves.easeOutCubic,
|
||||
),
|
||||
_animation = Tween<double>(begin: 0.0, end: 0.0).animate(
|
||||
CurvedAnimation(parent: _animationController, curve: Curves.easeOutCubic),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -80,15 +74,16 @@ class _CustomBottomNavBarState extends State<CustomBottomNavBar>
|
||||
final beginOffset = _previousIndex * tabWidth + tabWidth / 2;
|
||||
final endOffset = selectedIndex * tabWidth + tabWidth / 2;
|
||||
|
||||
_animation = Tween<double>(
|
||||
begin: beginOffset - circleDiameter / 2,
|
||||
end: endOffset - circleDiameter / 2,
|
||||
).animate(
|
||||
CurvedAnimation(
|
||||
parent: _animationController,
|
||||
curve: Curves.easeOutCubic,
|
||||
),
|
||||
);
|
||||
_animation =
|
||||
Tween<double>(
|
||||
begin: beginOffset - circleDiameter / 2,
|
||||
end: endOffset - circleDiameter / 2,
|
||||
).animate(
|
||||
CurvedAnimation(
|
||||
parent: _animationController,
|
||||
curve: Curves.easeOutCubic,
|
||||
),
|
||||
);
|
||||
|
||||
_previousIndex = selectedIndex;
|
||||
_animationController.forward(from: 0.0);
|
||||
@@ -123,7 +118,8 @@ class _CustomBottomNavBarState extends State<CustomBottomNavBar>
|
||||
icon: _getIconData(tab.icon),
|
||||
label: tab.name,
|
||||
isSelected: isSelected,
|
||||
onTap: () => context.read<TabConfigCubit>().selectTab(index),
|
||||
onTap: () =>
|
||||
context.read<TabConfigCubit>().selectTab(index),
|
||||
),
|
||||
);
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user