You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classServiceextendsEvaluation {
SERVICE serviceCode;
// TODO: when CRUD Service, update building's serviceCheckBit// One building can serve same type of services, not only one.
classBuildingextendsTitleNodewithStatistics {
LatLng location;
int serviceCheckBits; // TODO transaction!
core/service/padong_auth.dart
staticFuture<SignUpResult> signUp(String email, String pw) async {
// When registerWithEmail returned AuthError.success,// the verification email has sent. so, TODO: View must notify it to user.try {
...
if (!currentUser.emailVerified) // TODO: notify email send
core/service/padong_auth
staticFuture<String> changeEmail(String email) async {
await _auth.currentUser.reload();
User sessionUser = _auth.currentUser;
if (sessionUser ==null) returnnull;
try {
// TODO: Must Check changeEmail with exist email.// In Firebase Auth Document, verifyBeforeUpdateEmail's Error code doesn't// have [auth/email-already-in-use].await sessionUser.verifyBeforeUpdateEmail(email);
core/service/session.dart
staticFuturechangeUserEmail(String email, BuildContext context) async {
String uid =awaitPadongAuth.getUid();
if (user ==null|| user.id != uid)
throwException('Invalid User try to Change Email');
// TODO: user's parentId <- if user change universityString currEmail =awaitPadongAuth.changeEmail(email);
user.userEmails = [currEmail, email];
await user.update();
awaitsignOutUser(context);
}
core/service/session.dart
staticFuture<bool> changeCurrentUniversity(
University university, BuildContext context) async {
// TODO: use Provider, alert all view
currUniversity = university;
Navigator.pushNamed(context, '/main');
returntrue; // TODO: check success
}
onPressed: () async {
if (this.isButtonDisabled ==false) {
this.isButtonDisabled =true;
if (await widget.onTapEnter())
// Session is Already UpdatedNavigator.pushNamed(context, '/main');
else// TODO: feedback to userlog("${widget.isSignIn ? 'SignIn' : 'SignUp'} Failed");
this.isButtonDisabled =false;
}
})
ui/views/templates/map_supporter_template.dart
child:HorizontalScroller(height:150, children: [
// TODO: get building cards from API
...List.generate(10, (idx) =>BuildingCard(idx.toString())),
SizedBox(width:60)
])));
Positioned(
bottom:2,
right:0,
child:Text(
'e'+this.id, // TODO: history ID
style:AppTheme.getFont(
color:AppTheme.colors.fontPalette[2],
fontSize:AppTheme.fontSizes.small),
))
ui/widgets/cards/timelines/timeline_card.dart
StringgetTerm() {
TimeManager tm =TimeManager.fromString(this.event['times'][0]);
return tm.range + (tm.dMin >0?' (${tm.dMin}min)':' All day'); // TODO: get Term from TimeRange
}
ui/widgets/containers/vertical_timeline.dart
classVerticalTimelineextendsStatelessWidget {
finalString date; // TODO: DateTime class
//Todo: Have to optimize with https://en.wikipedia.org/wiki/Longest_common_subsequence_problem#Reduce_the_problem_set//Todo: Have to study google/diff-match-patch's Algorithm ( Myer's diff algorithm, https://neil.fraser.name/writing/diff/ )List<Diff> diffLine(String prev, String next) {
List<Diff> result =List<Diff>();
List<String> p =toLinuxNewLine(prev).split('\n');
List<String> n =toLinuxNewLine(next).split('\n');
The text was updated successfully, but these errors were encountered:
FIXME
TODO
DO NOT UPDATE UNIV AT SESSION
The text was updated successfully, but these errors were encountered: