TF-1042:Connection pop up never be disappear
This commit is contained in:
@@ -24,14 +24,6 @@ class LoginView extends BaseLoginView {
|
||||
desktop: _buildWebForm(context),
|
||||
)))
|
||||
),
|
||||
Obx(() {
|
||||
if (controller.isNetworkConnectionAvailable()) {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
return Align(
|
||||
alignment: Alignment.bottomCenter,
|
||||
child: buildNetworkConnectionWidget(context));
|
||||
}),
|
||||
]),
|
||||
);
|
||||
}
|
||||
@@ -280,14 +272,14 @@ class LoginView extends BaseLoginView {
|
||||
margin: const EdgeInsets.only(bottom: 16, left: 24, right: 24),
|
||||
width: responsiveUtils.getDeviceWidth(context),height: 48,
|
||||
child: AbsorbPointer(
|
||||
absorbing: !controller.isNetworkConnectionAvailable(),
|
||||
absorbing: !controller.networkConnectionController.isNetworkConnectionAvailable(),
|
||||
child: ElevatedButton(
|
||||
key: const Key('ssoSubmitForm'),
|
||||
style: ButtonStyle(
|
||||
foregroundColor: MaterialStateProperty.resolveWith<Color>((Set<MaterialState> states) => Colors.white),
|
||||
backgroundColor: MaterialStateProperty.resolveWith<Color>(
|
||||
(Set<MaterialState> states) => AppColor.primaryColor.withOpacity(
|
||||
controller.isNetworkConnectionAvailable() ? 1 : 0.5)),
|
||||
controller.networkConnectionController.isNetworkConnectionAvailable() ? 1 : 0.5)),
|
||||
shape: MaterialStateProperty.all(RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
side: const BorderSide(width: 0, color: AppColor.primaryColor)
|
||||
|
||||
Reference in New Issue
Block a user