cleared console problems
This commit is contained in:
@@ -75,7 +75,7 @@ class _CachedSvgState extends State<CachedSvg> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (_isLoading) {
|
||||
return SizedBox();
|
||||
return const SizedBox();
|
||||
}
|
||||
|
||||
if (_svgData == null) {
|
||||
|
||||
@@ -34,9 +34,9 @@ class DesktopNavigationWidget extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
SizedBox(width: 40),
|
||||
const SizedBox(width: 40),
|
||||
SvgPicture.asset(AssetsManager.logoSmall),
|
||||
Spacer(),
|
||||
const Spacer(),
|
||||
_navigationItem(
|
||||
context: context,
|
||||
text: HomeStrings.home,
|
||||
@@ -45,14 +45,17 @@ class DesktopNavigationWidget extends StatelessWidget {
|
||||
if (currentIndex == 0) {
|
||||
return;
|
||||
} else {
|
||||
Router.neglect(context, () => HomeRouteData().go(context));
|
||||
Router.neglect(
|
||||
context,
|
||||
() => const HomeRouteData().go(context),
|
||||
);
|
||||
context.read<HomeViewModel>().init();
|
||||
}
|
||||
},
|
||||
iconPath: AssetsManager.home,
|
||||
activeIconPath: AssetsManager.homeActive,
|
||||
),
|
||||
SizedBox(width: 24),
|
||||
const SizedBox(width: 24),
|
||||
_navigationItem(
|
||||
context: context,
|
||||
text: TendersStrings.tendersTitle,
|
||||
@@ -61,14 +64,17 @@ class DesktopNavigationWidget extends StatelessWidget {
|
||||
if (currentIndex == 1) {
|
||||
return;
|
||||
} else {
|
||||
Router.neglect(context, () => TendersRouteData().go(context));
|
||||
Router.neglect(
|
||||
context,
|
||||
() => const TendersRouteData().go(context),
|
||||
);
|
||||
context.read<TendersViewModel>().getTenders();
|
||||
}
|
||||
},
|
||||
iconPath: AssetsManager.tenders,
|
||||
activeIconPath: AssetsManager.tendersActive,
|
||||
),
|
||||
SizedBox(width: 24),
|
||||
const SizedBox(width: 24),
|
||||
_navigationItem(
|
||||
context: context,
|
||||
text: TendersStrings.contracts,
|
||||
@@ -84,7 +90,7 @@ class DesktopNavigationWidget extends StatelessWidget {
|
||||
iconPath: AssetsManager.contracts,
|
||||
activeIconPath: AssetsManager.contracts,
|
||||
),
|
||||
SizedBox(width: 24),
|
||||
const SizedBox(width: 24),
|
||||
_navigationItem(
|
||||
context: context,
|
||||
text: TendersStrings.notifications,
|
||||
@@ -95,7 +101,7 @@ class DesktopNavigationWidget extends StatelessWidget {
|
||||
} else {
|
||||
Router.neglect(
|
||||
context,
|
||||
() => NotificationRouteData().go(context),
|
||||
() => const NotificationRouteData().go(context),
|
||||
);
|
||||
//context.read<notificationViewModel>().getTenders();
|
||||
}
|
||||
@@ -103,7 +109,7 @@ class DesktopNavigationWidget extends StatelessWidget {
|
||||
iconPath: AssetsManager.notify,
|
||||
activeIconPath: AssetsManager.notifyActive,
|
||||
),
|
||||
SizedBox(width: 24),
|
||||
const SizedBox(width: 24),
|
||||
_navigationItem(
|
||||
context: context,
|
||||
text: ProfileStrings.profileTitle,
|
||||
@@ -112,13 +118,16 @@ class DesktopNavigationWidget extends StatelessWidget {
|
||||
if (currentIndex == 4) {
|
||||
return;
|
||||
} else {
|
||||
Router.neglect(context, () => ProfileRouteData().go(context));
|
||||
Router.neglect(
|
||||
context,
|
||||
() => const ProfileRouteData().go(context),
|
||||
);
|
||||
}
|
||||
},
|
||||
iconPath: AssetsManager.profile,
|
||||
activeIconPath: AssetsManager.profileActive,
|
||||
),
|
||||
Spacer(),
|
||||
const Spacer(),
|
||||
if (haveFilter)
|
||||
Builder(
|
||||
builder:
|
||||
@@ -133,7 +142,7 @@ class DesktopNavigationWidget extends StatelessWidget {
|
||||
},
|
||||
),
|
||||
),
|
||||
SizedBox(width: 68),
|
||||
const SizedBox(width: 68),
|
||||
],
|
||||
),
|
||||
);
|
||||
@@ -157,7 +166,7 @@ class DesktopNavigationWidget extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
SvgPicture.asset(isActive ? activeIconPath : iconPath),
|
||||
SizedBox(width: 8),
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
text,
|
||||
style: TextStyle(
|
||||
|
||||
@@ -36,7 +36,7 @@ class _MainTabBarState extends State<MainTabBar> {
|
||||
BoxShadow(
|
||||
color: Colors.black.withValues(alpha: 0.12),
|
||||
blurRadius: 4,
|
||||
offset: Offset(0, 2),
|
||||
offset: const Offset(0, 2),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -30,7 +30,7 @@ class _SelectSubmissionBottomSheetState
|
||||
padding: EdgeInsets.fromLTRB(24.0.w(), 24.0.h(), 24.0.w(), 33.0.h()),
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.backgroundColor,
|
||||
borderRadius: BorderRadius.only(
|
||||
borderRadius: const BorderRadius.only(
|
||||
topLeft: Radius.circular(16.0),
|
||||
topRight: Radius.circular(16.0),
|
||||
),
|
||||
@@ -115,7 +115,7 @@ class _SelectSubmissionBottomSheetState
|
||||
horizontal: 10.0.w(),
|
||||
vertical: 10.0.h(),
|
||||
),
|
||||
padding: EdgeInsets.all(3),
|
||||
padding: const EdgeInsets.all(3),
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
border: Border.all(
|
||||
|
||||
@@ -114,7 +114,7 @@ class _SelectSubmissionDialogState extends State<SelectSubmissionDialog> {
|
||||
horizontal: 10.0.w(),
|
||||
vertical: 10.0.h(),
|
||||
),
|
||||
padding: EdgeInsets.all(3),
|
||||
padding: const EdgeInsets.all(3),
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
border: Border.all(
|
||||
|
||||
@@ -35,7 +35,10 @@ class TabletNavigationWidget extends StatelessWidget {
|
||||
if (currentIndex == 0) {
|
||||
return;
|
||||
} else {
|
||||
Router.neglect(context, () => HomeRouteData().go(context));
|
||||
Router.neglect(
|
||||
context,
|
||||
() => const HomeRouteData().go(context),
|
||||
);
|
||||
context.read<HomeViewModel>().init();
|
||||
}
|
||||
},
|
||||
@@ -50,7 +53,10 @@ class TabletNavigationWidget extends StatelessWidget {
|
||||
if (currentIndex == 1) {
|
||||
return;
|
||||
} else {
|
||||
Router.neglect(context, () => TendersRouteData().go(context));
|
||||
Router.neglect(
|
||||
context,
|
||||
() => const TendersRouteData().go(context),
|
||||
);
|
||||
context.read<TendersViewModel>().getTenders();
|
||||
}
|
||||
},
|
||||
@@ -65,8 +71,8 @@ class TabletNavigationWidget extends StatelessWidget {
|
||||
if (currentIndex == 2) {
|
||||
return;
|
||||
} else {
|
||||
// context.pop();
|
||||
// Router.neglect(context, () => ProfileRouteData().go(context));
|
||||
// context.pop();
|
||||
// Router.neglect(context, () => ProfileRouteData().go(context));
|
||||
}
|
||||
},
|
||||
iconPath: AssetsManager.contracts,
|
||||
@@ -81,7 +87,10 @@ class TabletNavigationWidget extends StatelessWidget {
|
||||
return;
|
||||
} else {
|
||||
context.pop();
|
||||
Router.neglect(context, () => NotificationRouteData().go(context));
|
||||
Router.neglect(
|
||||
context,
|
||||
() => const NotificationRouteData().go(context),
|
||||
);
|
||||
}
|
||||
},
|
||||
iconPath: AssetsManager.notify,
|
||||
@@ -96,7 +105,10 @@ class TabletNavigationWidget extends StatelessWidget {
|
||||
return;
|
||||
} else {
|
||||
context.pop();
|
||||
Router.neglect(context, () => ProfileRouteData().go(context));
|
||||
Router.neglect(
|
||||
context,
|
||||
() => const ProfileRouteData().go(context),
|
||||
);
|
||||
}
|
||||
},
|
||||
iconPath: AssetsManager.profile,
|
||||
@@ -135,7 +147,7 @@ class TabletNavigationWidget extends StatelessWidget {
|
||||
color: isActive ? AppColors.primaryColor : AppColors.grey60,
|
||||
),
|
||||
),
|
||||
Spacer(),
|
||||
const Spacer(),
|
||||
Container(
|
||||
width: 4.0.w(),
|
||||
height: 64.0.h(),
|
||||
|
||||
Reference in New Issue
Block a user