New registration bug fixed (init data not working on web)
This commit is contained in:
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_datetime_picker/flutter_datetime_picker.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:flutter_colorpicker/flutter_colorpicker.dart';
|
||||
import 'package:tasktracker/main.dart';
|
||||
import 'User.dart' as User;
|
||||
import 'Data.dart';
|
||||
import 'package:flutter_switch/flutter_switch.dart';
|
||||
@@ -657,10 +658,11 @@ class _NewProject2State extends State<NewProject2> {
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
void OnClickAdd() async{
|
||||
if(projectName==null || deadline.isBefore(DateTime.now())){showAlertDialog(context, 'Error', 'Please make sure you have entered correct information'); return;}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void OnClickedAdd(){
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user