Remove Ask Mzansi when new user or business
This commit is contained in:
parent
deed8c8d8b
commit
ce58fffe39
2 changed files with 54 additions and 46 deletions
|
|
@ -230,7 +230,9 @@ class _MihBusinessHomeState extends State<MihBusinessHome>
|
||||||
// ),
|
// ),
|
||||||
// ),
|
// ),
|
||||||
// const SizedBox(height: 20),
|
// const SizedBox(height: 20),
|
||||||
Padding(
|
Visibility(
|
||||||
|
visible: !widget.isBusinessUserNew,
|
||||||
|
child: Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: width / 20),
|
padding: EdgeInsets.symmetric(horizontal: width / 20),
|
||||||
child: MihSearchBar(
|
child: MihSearchBar(
|
||||||
controller: searchController,
|
controller: searchController,
|
||||||
|
|
@ -239,7 +241,8 @@ class _MihBusinessHomeState extends State<MihBusinessHome>
|
||||||
prefixAltIcon: MihIcons.mzansiAi,
|
prefixAltIcon: MihIcons.mzansiAi,
|
||||||
fillColor:
|
fillColor:
|
||||||
MzansiInnovationHub.of(context)!.theme.secondaryColor(),
|
MzansiInnovationHub.of(context)!.theme.secondaryColor(),
|
||||||
hintColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
hintColor:
|
||||||
|
MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
onPrefixIconTap: () {
|
onPrefixIconTap: () {
|
||||||
Navigator.of(context).pushNamed(
|
Navigator.of(context).pushNamed(
|
||||||
'/mzansi-ai',
|
'/mzansi-ai',
|
||||||
|
|
@ -255,6 +258,7 @@ class _MihBusinessHomeState extends State<MihBusinessHome>
|
||||||
searchFocusNode: _searchFocusNode,
|
searchFocusNode: _searchFocusNode,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
ValueListenableBuilder(
|
ValueListenableBuilder(
|
||||||
valueListenable: searchPackageName,
|
valueListenable: searchPackageName,
|
||||||
|
|
|
||||||
|
|
@ -281,7 +281,9 @@ class _MihPersonalHomeState extends State<MihPersonalHome>
|
||||||
// ),
|
// ),
|
||||||
// ),
|
// ),
|
||||||
// const SizedBox(height: 20),
|
// const SizedBox(height: 20),
|
||||||
Padding(
|
Visibility(
|
||||||
|
visible: !widget.isUserNew,
|
||||||
|
child: Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: width / 20),
|
padding: EdgeInsets.symmetric(horizontal: width / 20),
|
||||||
child: MihSearchBar(
|
child: MihSearchBar(
|
||||||
controller: searchController,
|
controller: searchController,
|
||||||
|
|
@ -290,7 +292,8 @@ class _MihPersonalHomeState extends State<MihPersonalHome>
|
||||||
prefixAltIcon: MihIcons.mzansiAi,
|
prefixAltIcon: MihIcons.mzansiAi,
|
||||||
fillColor:
|
fillColor:
|
||||||
MzansiInnovationHub.of(context)!.theme.secondaryColor(),
|
MzansiInnovationHub.of(context)!.theme.secondaryColor(),
|
||||||
hintColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
hintColor:
|
||||||
|
MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
onPrefixIconTap: () {
|
onPrefixIconTap: () {
|
||||||
Navigator.of(context).pushNamed(
|
Navigator.of(context).pushNamed(
|
||||||
'/mzansi-ai',
|
'/mzansi-ai',
|
||||||
|
|
@ -306,6 +309,7 @@ class _MihPersonalHomeState extends State<MihPersonalHome>
|
||||||
searchFocusNode: _searchFocusNode,
|
searchFocusNode: _searchFocusNode,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
ValueListenableBuilder(
|
ValueListenableBuilder(
|
||||||
valueListenable: searchPackageName,
|
valueListenable: searchPackageName,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue