showAppFeedbackAsNotSatisfiedDialog function
Implementation
Future<void> showAppFeedbackAsNotSatisfiedDialog(
BuildContext context, {
required bool isHomeOwner,
}) {
Navigator.of(context).pop();
return showDialog(
context: context,
builder: (context) => AlertDialog(
actionsAlignment: MainAxisAlignment.spaceAround,
title: Center(
child: Text(
context.sharedL10n.notSatisfiedWithThisApp,
style: context.textTheme.bodyLarge,
),
),
content: Text(
context.sharedL10n.howWeImproveExperience,
style: context.textTheme.titleSmall,
),
actions: [
Column(
children: [
TextButton(
onPressed: () => showAppFeedbackSubmissionDialog(
context: context,
isMoreThanThreeRates: false,
selectedStartCount: 0,
isHomeOwner: isHomeOwner,
),
child: Text(
context.sharedL10n.sendFeedback,
style: context.textTheme.bodyMedium
?.copyWith(color: context.colorScheme.primary),
),
),
TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: Text(
context.sharedL10n.maybeLater,
style: context.textTheme.bodyMedium
?.copyWith(color: context.colorScheme.primary),
),
),
],
),
],
),
);
}