skip to Main Content

Why the value doesn't change after calling the Setstate() function in flutter

import 'package:flutter/material.dart'; import 'package:get/get.dart'; //import 'package:get/get_core/src/get_main.dart'; import 'package:intl/intl.dart'; import 'package:menstrual_period_tracker/input2.dart'; import 'package:nepali_date_picker/nepali_date_picker.dart'; class Picker extends StatefulWidget { const Picker({super.key}); @override State<Picker> createState() => _PickerState(); } class _PickerState extends State<Picker> { NepaliDateTime _dateTime = NepaliDateTime.now(); void _showdatepicker() async { await showDatePicker(…

VIEW QUESTION
Back To Top
Search