cleared console problems
This commit is contained in:
@@ -41,7 +41,7 @@ class _YourTendersDesktopPageState extends State<YourTendersDesktopPage>
|
||||
backgroundColor: AppColors.backgroundColor,
|
||||
body: Column(
|
||||
children: [
|
||||
DesktopNavigationWidget(currentIndex: 1), // Tenders index
|
||||
const DesktopNavigationWidget(currentIndex: 1), // Tenders index
|
||||
Expanded(
|
||||
child: SizedBox(
|
||||
width: 740,
|
||||
@@ -117,7 +117,7 @@ class _YourTendersDesktopPageState extends State<YourTendersDesktopPage>
|
||||
color: AppColors.grey60,
|
||||
),
|
||||
),
|
||||
SizedBox(width: 10.0.w()),
|
||||
SizedBox(width: 10.0.w()),
|
||||
InkWell(
|
||||
onTap: () async {
|
||||
final selectedPage = await showDialog<int>(
|
||||
@@ -126,7 +126,9 @@ class _YourTendersDesktopPageState extends State<YourTendersDesktopPage>
|
||||
return AlertDialog(
|
||||
backgroundColor:
|
||||
AppColors.backgroundColor,
|
||||
title: const Text(YourTendersStrings.selectPage),
|
||||
title: const Text(
|
||||
YourTendersStrings.selectPage,
|
||||
),
|
||||
content: SizedBox(
|
||||
width: 200.0.w(),
|
||||
height: 300.0.h(),
|
||||
@@ -165,7 +167,7 @@ class _YourTendersDesktopPageState extends State<YourTendersDesktopPage>
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
SizedBox(width: 5.0.w()),
|
||||
SizedBox(width: 5.0.w()),
|
||||
Text(
|
||||
'${viewModel.currentPage}',
|
||||
style: TextStyle(
|
||||
@@ -174,14 +176,14 @@ class _YourTendersDesktopPageState extends State<YourTendersDesktopPage>
|
||||
color: AppColors.grey70,
|
||||
),
|
||||
),
|
||||
SizedBox(width: 5.0.w()),
|
||||
SizedBox(width: 5.0.w()),
|
||||
const Icon(Icons.arrow_drop_down),
|
||||
SizedBox(width: 5.0.w()),
|
||||
SizedBox(width: 5.0.w()),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(width: 5.0.w()),
|
||||
SizedBox(width: 5.0.w()),
|
||||
Text(
|
||||
YourTendersStrings.of,
|
||||
style: TextStyle(
|
||||
@@ -190,7 +192,7 @@ class _YourTendersDesktopPageState extends State<YourTendersDesktopPage>
|
||||
color: AppColors.grey60,
|
||||
),
|
||||
),
|
||||
SizedBox(width: 5.0.w()),
|
||||
SizedBox(width: 5.0.w()),
|
||||
Text(
|
||||
'${viewModel.totalPages}',
|
||||
style: TextStyle(
|
||||
|
||||
@@ -40,7 +40,7 @@ class _YourTendersMobilePageState extends State<YourTendersMobilePage> {
|
||||
appBar: appBar(context: context, title: YourTendersStrings.yourTenders),
|
||||
body: Column(
|
||||
children: [
|
||||
FilterButton(platformType: PlatformType.mobile),
|
||||
const FilterButton(platformType: PlatformType.mobile),
|
||||
Expanded(
|
||||
child: Consumer<YourTendersViewModel>(
|
||||
builder: (context, viewModel, child) {
|
||||
|
||||
@@ -31,7 +31,7 @@ class _YourTendersScreenState extends State<YourTendersScreen> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
SizeConfig.init(context);
|
||||
return ResponsiveBuilder(
|
||||
return const ResponsiveBuilder(
|
||||
mobile: YourTendersMobilePage(),
|
||||
tablet: YourTendersTabletPage(),
|
||||
desktop: YourTendersDesktopPage(),
|
||||
|
||||
@@ -7,6 +7,7 @@ import 'package:tm_app/views/your_tenders/widgets/filter_button.dart';
|
||||
import 'package:tm_app/views/your_tenders/widgets/liked_disliked_tenders_list.dart';
|
||||
import 'package:tm_app/views/your_tenders/widgets/tablet_desktop_appbar.dart';
|
||||
import 'package:tm_app/views/your_tenders/widgets/tenders_submitted.dart';
|
||||
|
||||
import '../../../core/constants/tender_feedback.dart';
|
||||
import '../../shared/tablet_navigation_widget.dart';
|
||||
import '../../shared/tender_app_bar.dart';
|
||||
@@ -42,19 +43,19 @@ class _YourTendersTabletPageState extends State<YourTendersTabletPage>
|
||||
key: key,
|
||||
backgroundColor: AppColors.backgroundColor,
|
||||
appBar: tabletAppBar(title: YourTendersStrings.yourTenders, key: key),
|
||||
drawer: TabletNavigationWidget(currentIndex: 1),
|
||||
drawer: const TabletNavigationWidget(currentIndex: 1),
|
||||
body: Center(
|
||||
child: SizedBox(
|
||||
width: 720,
|
||||
child: Column(
|
||||
children: [
|
||||
SizedBox(height: 64.0),
|
||||
const SizedBox(height: 64.0),
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 8.0.w()),
|
||||
child: TabletDesktopAppbar(),
|
||||
child: const TabletDesktopAppbar(),
|
||||
),
|
||||
SizedBox(height: 24.0.h()),
|
||||
FilterButton(platformType: PlatformType.tabletDesktop),
|
||||
const FilterButton(platformType: PlatformType.tabletDesktop),
|
||||
|
||||
Expanded(
|
||||
child: Consumer<YourTendersViewModel>(
|
||||
@@ -108,7 +109,7 @@ class _YourTendersTabletPageState extends State<YourTendersTabletPage>
|
||||
return Column(
|
||||
children: [
|
||||
Expanded(child: content),
|
||||
SizedBox(height: 10.0.h()),
|
||||
SizedBox(height: 10.0.h()),
|
||||
|
||||
Row(
|
||||
children: [
|
||||
@@ -121,15 +122,18 @@ class _YourTendersTabletPageState extends State<YourTendersTabletPage>
|
||||
color: AppColors.grey60,
|
||||
),
|
||||
),
|
||||
SizedBox(width: 10.0.w()),
|
||||
SizedBox(width: 10.0.w()),
|
||||
InkWell(
|
||||
onTap: () async {
|
||||
final selectedPage = await showDialog<int>(
|
||||
context: context,
|
||||
builder: (context) {
|
||||
return AlertDialog(
|
||||
backgroundColor: AppColors.backgroundColor,
|
||||
title: const Text(YourTendersStrings.selectPage),
|
||||
backgroundColor:
|
||||
AppColors.backgroundColor,
|
||||
title: const Text(
|
||||
YourTendersStrings.selectPage,
|
||||
),
|
||||
content: SizedBox(
|
||||
width: 200.0.w(),
|
||||
height: 300.0.h(),
|
||||
@@ -138,11 +142,14 @@ class _YourTendersTabletPageState extends State<YourTendersTabletPage>
|
||||
itemBuilder: (context, index) {
|
||||
final pageNumber = index + 1;
|
||||
return ListTile(
|
||||
title: Text('${YourTendersStrings.page} $pageNumber'),
|
||||
onTap: () => Navigator.pop(
|
||||
context,
|
||||
pageNumber,
|
||||
title: Text(
|
||||
'${YourTendersStrings.page} $pageNumber',
|
||||
),
|
||||
onTap:
|
||||
() => Navigator.pop(
|
||||
context,
|
||||
pageNumber,
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
@@ -165,7 +172,7 @@ class _YourTendersTabletPageState extends State<YourTendersTabletPage>
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
SizedBox(width: 5.0.w()),
|
||||
SizedBox(width: 5.0.w()),
|
||||
Text(
|
||||
'${viewModel.currentPage}',
|
||||
style: TextStyle(
|
||||
@@ -174,14 +181,14 @@ class _YourTendersTabletPageState extends State<YourTendersTabletPage>
|
||||
color: AppColors.grey70,
|
||||
),
|
||||
),
|
||||
SizedBox(width: 5.0.w()),
|
||||
SizedBox(width: 5.0.w()),
|
||||
const Icon(Icons.arrow_drop_down),
|
||||
SizedBox(width: 5.0.w()),
|
||||
SizedBox(width: 5.0.w()),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(width: 5.0),
|
||||
const SizedBox(width: 5.0),
|
||||
Text(
|
||||
YourTendersStrings.page,
|
||||
style: TextStyle(
|
||||
@@ -190,7 +197,7 @@ class _YourTendersTabletPageState extends State<YourTendersTabletPage>
|
||||
color: AppColors.grey60,
|
||||
),
|
||||
),
|
||||
SizedBox(width: 5.0.w()),
|
||||
SizedBox(width: 5.0.w()),
|
||||
Text(
|
||||
'${viewModel.totalPages}',
|
||||
style: TextStyle(
|
||||
|
||||
Reference in New Issue
Block a user