update carton and cargo type

This commit is contained in:
tzw
2025-03-12 17:49:27 +06:30
parent 05e912ea68
commit e208734dfa
32 changed files with 1141 additions and 462 deletions

View File

@@ -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;
});
}
}