update carton and cargo type
This commit is contained in:
@@ -28,9 +28,11 @@ import 'account_delection_page.dart';
|
||||
import 'add_recovery_email.dart';
|
||||
import 'change_phone_number.dart';
|
||||
|
||||
typedef void ProfileCallback();
|
||||
typedef ProfileCallback = void Function();
|
||||
|
||||
class Profile extends StatefulWidget {
|
||||
const Profile({super.key});
|
||||
|
||||
@override
|
||||
_ProfileState createState() => _ProfileState();
|
||||
}
|
||||
@@ -52,9 +54,9 @@ class _ProfileState extends State<Profile> {
|
||||
|
||||
buildLanguage(LanguageModel languageModel) async {
|
||||
var lan = await languageModel.load();
|
||||
if (this.selectedLanguage != lan) {
|
||||
if (selectedLanguage != lan) {
|
||||
setState(() {
|
||||
this.selectedLanguage = lan;
|
||||
selectedLanguage = lan;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user