mirror of
https://github.com/hmalik144/days_left_flutter.git
synced 2026-03-17 23:16:12 +00:00
- Introduction on base view model and stateless widget classes
- Implementation of firebase - Implementation of dependency injection Took 11 hours 26 minutes
This commit is contained in:
26
lib/model/DialogModels.dart
Normal file
26
lib/model/DialogModels.dart
Normal file
@@ -0,0 +1,26 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
class DialogRequest{
|
||||
final String title;
|
||||
final String description;
|
||||
final String buttonTitle;
|
||||
final String cancelTitle;
|
||||
|
||||
DialogRequest(
|
||||
{@required this.title,
|
||||
@required this.description,
|
||||
@required this.buttonTitle,
|
||||
this.cancelTitle});
|
||||
}
|
||||
|
||||
class DialogResponse {
|
||||
final String fieldOne;
|
||||
final String fieldTwo;
|
||||
final bool confirmed;
|
||||
|
||||
DialogResponse({
|
||||
this.fieldOne,
|
||||
this.fieldTwo,
|
||||
this.confirmed,
|
||||
});
|
||||
}
|
||||
26
lib/model/UserProfileDetails.dart
Normal file
26
lib/model/UserProfileDetails.dart
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
class UserProfileDetails {
|
||||
final String name;
|
||||
final String dob;
|
||||
final String postcode;
|
||||
final String email;
|
||||
final String phone;
|
||||
final String sex;
|
||||
|
||||
UserProfileDetails(
|
||||
this.name,
|
||||
this.dob,
|
||||
this.postcode,
|
||||
this.email,
|
||||
this.phone,
|
||||
this.sex
|
||||
);
|
||||
|
||||
UserProfileDetails.fromSnapshot(Map<dynamic, dynamic> snapshot) :
|
||||
name = snapshot["name"],
|
||||
dob = snapshot["dob"],
|
||||
postcode = snapshot["postcode"],
|
||||
email = snapshot["email"],
|
||||
phone = snapshot["phone"],
|
||||
sex = snapshot["sex"];
|
||||
}
|
||||
Reference in New Issue
Block a user