Merge remote-tracking branch 'origin/main_design2.0' into main_design2.0

main_design2.0
Sikander Saleem 2 years ago
commit f634dd69bd

@ -73,7 +73,7 @@ class _AllRequestsSearchPageState extends State<AllRequestsSearchPage> {
children: [
Text(
context.translation.reset,
// style: AppTextStyles.bodyText2.copyWith(color: const Color(0xFF4A8DB7)),
style: AppTextStyles.bodyText2.copyWith(color: const Color(0xFF4A8DB7)),
).paddingAll(8).onPress(() {
setState(() {
search.resetSearchValues();

@ -28,6 +28,7 @@ class GasRefillCommentsBottomSheet extends StatefulWidget {
class _GasRefillCommentsBottomSheetState extends State<GasRefillCommentsBottomSheet> {
final GlobalKey<FormState> _formKey = GlobalKey<FormState>();
GasRefillCommentsProvider commentsProvider;
String text;
@override
@ -35,9 +36,15 @@ class _GasRefillCommentsBottomSheetState extends State<GasRefillCommentsBottomSh
super.initState();
}
@override
void dispose() {
commentsProvider.reset();
super.dispose();
}
@override
Widget build(BuildContext context) {
final commentsProvider = Provider.of<GasRefillCommentsProvider>(context);
commentsProvider= Provider.of<GasRefillCommentsProvider>(context);
final userProvider = Provider.of<UserProvider>(context, listen: false);
return Container(
height: MediaQuery.of(context).size.height * 0.6,

Loading…
Cancel
Save