-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
griş yapılınca drawer widgetdaki isim değişir, sosyal medya hesapları…
… görünür
- Loading branch information
1 parent
1e3e9bc
commit 733165a
Showing
9,266 changed files
with
1,106,501 additions
and
64 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,43 @@ | ||
import 'package:tobeto/model/user_model.dart'; | ||
import 'package:tobeto/screens/profile_create/model/language_model.dart'; | ||
import 'package:tobeto/screens/profile_create/model/social_media_model.dart'; | ||
|
||
abstract class ProfileState {} | ||
|
||
class ProfileInitial extends ProfileState {} | ||
|
||
// İstek Atılıyor, Yükleniyor | ||
class ProfileLoading extends ProfileState { | ||
// Circular progress indicator | ||
} | ||
class ProfileLoading extends ProfileState {} | ||
|
||
// Yüklendi, Profil bilgileri ekranda gözükür. | ||
class ProfileLoaded extends ProfileState { | ||
final UserModel userModel; | ||
ProfileLoaded({required this.userModel}); | ||
final List<SocialMediaData> selectedSocialMedia; | ||
final List<LanguageData> selectedLanguage; | ||
|
||
ProfileLoaded({ | ||
required this.userModel, | ||
required this.selectedSocialMedia, | ||
required this.selectedLanguage, | ||
}); | ||
|
||
ProfileLoaded copyWith({ | ||
UserModel? userModel, | ||
List<SocialMediaData>? selectedSocialMedia, | ||
List<LanguageData>? selectedLanguage, | ||
}) { | ||
return ProfileLoaded( | ||
userModel: userModel ?? this.userModel, | ||
selectedSocialMedia: selectedSocialMedia ?? this.selectedSocialMedia, | ||
selectedLanguage: selectedLanguage ?? this.selectedLanguage, | ||
); | ||
} | ||
} | ||
|
||
// Veri Yoksa | ||
class ProfileError extends ProfileState { | ||
String errorMessage; | ||
|
||
ProfileError({ | ||
required this.errorMessage, | ||
}); | ||
} | ||
|
||
// Profil güncellenirse | ||
|
||
class ProfileUpdated extends ProfileState {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.