remove search on start for MD
This commit is contained in:
@@ -12,11 +12,9 @@ import 'package:supertokens_flutter/supertokens.dart';
|
||||
|
||||
class MihAddBookmarkAlert extends StatefulWidget {
|
||||
final Business business;
|
||||
final String? startUpSearch;
|
||||
const MihAddBookmarkAlert({
|
||||
super.key,
|
||||
required this.business,
|
||||
required this.startUpSearch,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -40,7 +38,6 @@ class _MihAddBookmarkAlertState extends State<MihAddBookmarkAlert> {
|
||||
'/mzansi-directory',
|
||||
ModalRoute.withName('/'),
|
||||
arguments: MzansiDirectoryArguments(
|
||||
startUpSearch: widget.startUpSearch, // startUpSearch
|
||||
personalSearch: false, // personalSearch
|
||||
packageIndex: 1,
|
||||
),
|
||||
|
||||
@@ -647,7 +647,6 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
||||
businessReview: myReview,
|
||||
screenWidth: width,
|
||||
readOnly: false,
|
||||
startUpSearch: widget.startUpSearch,
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -657,7 +656,6 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
||||
context: context,
|
||||
builder: (context) => MihAddBookmarkAlert(
|
||||
business: widget.business,
|
||||
startUpSearch: widget.startUpSearch,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -52,7 +52,6 @@ class _MihDeleteBookmarkAlertState extends State<MihDeleteBookmarkAlert> {
|
||||
'/mzansi-directory',
|
||||
ModalRoute.withName('/'),
|
||||
arguments: MzansiDirectoryArguments(
|
||||
startUpSearch: widget.startUpSearch, // startUpSearch
|
||||
personalSearch: false, // personalSearch
|
||||
packageIndex: 1,
|
||||
),
|
||||
|
||||
@@ -23,14 +23,12 @@ class MihReviewBusinessWindow extends StatefulWidget {
|
||||
final BusinessReview? businessReview;
|
||||
final double screenWidth;
|
||||
final bool readOnly;
|
||||
final String? startUpSearch;
|
||||
const MihReviewBusinessWindow({
|
||||
super.key,
|
||||
required this.business,
|
||||
required this.businessReview,
|
||||
required this.screenWidth,
|
||||
required this.readOnly,
|
||||
required this.startUpSearch,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -101,7 +99,6 @@ class _MihReviewBusinessWindowState extends State<MihReviewBusinessWindow> {
|
||||
Navigator.of(context).pushNamed(
|
||||
'/mzansi-directory',
|
||||
arguments: MzansiDirectoryArguments(
|
||||
startUpSearch: widget.startUpSearch, // startUpSearch
|
||||
personalSearch: false, // personalSearch
|
||||
),
|
||||
);
|
||||
@@ -191,8 +188,7 @@ class _MihReviewBusinessWindowState extends State<MihReviewBusinessWindow> {
|
||||
Navigator.of(context).pushNamed(
|
||||
'/mzansi-directory',
|
||||
arguments: MzansiDirectoryArguments(
|
||||
startUpSearch: widget.startUpSearch, // startUpSearch
|
||||
personalSearch: false, // personalSearch
|
||||
personalSearch: false, // personalSearch
|
||||
),
|
||||
);
|
||||
MihAlertServices().successAlert(
|
||||
@@ -227,7 +223,6 @@ class _MihReviewBusinessWindowState extends State<MihReviewBusinessWindow> {
|
||||
Navigator.of(context).pushNamed(
|
||||
'/mzansi-directory',
|
||||
arguments: MzansiDirectoryArguments(
|
||||
startUpSearch: widget.startUpSearch, // startUpSearch
|
||||
personalSearch: false, // personalSearch
|
||||
),
|
||||
);
|
||||
@@ -386,7 +381,8 @@ class _MihReviewBusinessWindowState extends State<MihReviewBusinessWindow> {
|
||||
emptyColor: MzansiInnovationHub.of(context)!
|
||||
.theme
|
||||
.secondaryColor(),
|
||||
halfFilledColor: MihColors.getYellowColor(context), isHalfAllowed: true,
|
||||
halfFilledColor: MihColors.getYellowColor(context),
|
||||
isHalfAllowed: true,
|
||||
initialRating: widget.businessReview != null
|
||||
? double.parse(_reviewScoreController.text)
|
||||
: 1,
|
||||
|
||||
@@ -40,7 +40,6 @@ class _MihBusinessReviewsState extends State<MihBusinessReviews> {
|
||||
businessReview: businessReview,
|
||||
screenWidth: width,
|
||||
readOnly: true,
|
||||
startUpSearch: null,
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user