deleting default data
This commit is contained in:
@@ -39,8 +39,8 @@ class ClientHomeState extends Equatable {
|
|||||||
next7DaysSpending: 6100.0,
|
next7DaysSpending: 6100.0,
|
||||||
weeklyShifts: 12,
|
weeklyShifts: 12,
|
||||||
next7DaysScheduled: 18,
|
next7DaysScheduled: 18,
|
||||||
totalNeeded: 10,
|
totalNeeded: 0,
|
||||||
totalFilled: 8,
|
totalFilled: 0,
|
||||||
),
|
),
|
||||||
this.reorderItems = const <ReorderItem>[],
|
this.reorderItems = const <ReorderItem>[],
|
||||||
this.businessName = 'Your Company',
|
this.businessName = 'Your Company',
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class CoverageDashboard extends StatelessWidget {
|
|||||||
for (final s in shifts) {
|
for (final s in shifts) {
|
||||||
final int needed = s['workersNeeded'] as int? ?? 0;
|
final int needed = s['workersNeeded'] as int? ?? 0;
|
||||||
final int confirmed = s['filled'] as int? ?? 0;
|
final int confirmed = s['filled'] as int? ?? 0;
|
||||||
final double rate = s['hourlyRate'] as double? ?? 20.0;
|
final double rate = s['hourlyRate'] as double? ?? 0.0;
|
||||||
|
|
||||||
totalNeeded += needed;
|
totalNeeded += needed;
|
||||||
totalConfirmed += confirmed;
|
totalConfirmed += confirmed;
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ class CoverageWidget extends StatelessWidget {
|
|||||||
/// Creates a [CoverageWidget].
|
/// Creates a [CoverageWidget].
|
||||||
const CoverageWidget({
|
const CoverageWidget({
|
||||||
super.key,
|
super.key,
|
||||||
this.totalNeeded = 10,
|
this.totalNeeded = 0,
|
||||||
this.totalConfirmed = 8,
|
this.totalConfirmed = 0,
|
||||||
this.coveragePercent = 80,
|
this.coveragePercent = 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ type TeamHub @table(name: "team_hubs") {
|
|||||||
|
|
||||||
hubName: String!
|
hubName: String!
|
||||||
address: String!
|
address: String!
|
||||||
|
addressLocation: Any #object
|
||||||
|
|
||||||
city: String
|
city: String
|
||||||
state: String
|
state: String
|
||||||
zipCode: String
|
zipCode: String
|
||||||
|
|||||||
Reference in New Issue
Block a user