Skip to content

Commit 2a8e2bc

Browse files
committed
Added base kiosk functionality (check in/out)
1 parent c9e3bfa commit 2a8e2bc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2936
-605
lines changed

client/lib/base/app_bar/settings_action.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class SettingsAction extends StatelessWidget {
77
@override
88
Widget build(BuildContext context) {
99
return IconButton(
10-
onPressed: () => AppRoute.setup.go(context),
10+
onPressed: () => AppRoute.settings.go(context),
1111
icon: Icon(Icons.settings),
1212
);
1313
}

client/lib/generated/api/api.pb.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import 'package:protobuf/protobuf.dart' as $pb;
1616

1717
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
1818

19+
export 'location.pb.dart';
1920
export 'schedule.pb.dart';
2021
export 'session.pb.dart';
2122
export 'team_member.pb.dart';

client/lib/generated/api/api.pbenum.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
1111
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
1212

13+
export 'location.pbenum.dart';
1314
export 'schedule.pbenum.dart';
1415
export 'session.pbenum.dart';
1516
export 'team_member.pbenum.dart';
Lines changed: 269 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,269 @@
1+
// This is a generated file - do not edit.
2+
//
3+
// Generated from api/location.proto.
4+
5+
// @dart = 3.3
6+
7+
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
8+
// ignore_for_file: constant_identifier_names
9+
// ignore_for_file: curly_braces_in_flow_control_structures
10+
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
11+
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
12+
13+
import 'dart:core' as $core;
14+
15+
import 'package:protobuf/protobuf.dart' as $pb;
16+
17+
import '../db/db.pb.dart' as $1;
18+
19+
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
20+
21+
class LocationResponse extends $pb.GeneratedMessage {
22+
factory LocationResponse({
23+
$core.String? id,
24+
$1.Location? location,
25+
}) {
26+
final result = create();
27+
if (id != null) result.id = id;
28+
if (location != null) result.location = location;
29+
return result;
30+
}
31+
32+
LocationResponse._();
33+
34+
factory LocationResponse.fromBuffer($core.List<$core.int> data,
35+
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
36+
create()..mergeFromBuffer(data, registry);
37+
factory LocationResponse.fromJson($core.String json,
38+
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
39+
create()..mergeFromJson(json, registry);
40+
41+
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
42+
_omitMessageNames ? '' : 'LocationResponse',
43+
package: const $pb.PackageName(_omitMessageNames ? '' : 'tk.api'),
44+
createEmptyInstance: create)
45+
..aOS(1, _omitFieldNames ? '' : 'id')
46+
..aOM<$1.Location>(2, _omitFieldNames ? '' : 'location',
47+
subBuilder: $1.Location.create)
48+
..hasRequiredFields = false;
49+
50+
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
51+
LocationResponse clone() => deepCopy();
52+
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
53+
LocationResponse copyWith(void Function(LocationResponse) updates) =>
54+
super.copyWith((message) => updates(message as LocationResponse))
55+
as LocationResponse;
56+
57+
@$core.override
58+
$pb.BuilderInfo get info_ => _i;
59+
60+
@$core.pragma('dart2js:noInline')
61+
static LocationResponse create() => LocationResponse._();
62+
@$core.override
63+
LocationResponse createEmptyInstance() => create();
64+
@$core.pragma('dart2js:noInline')
65+
static LocationResponse getDefault() => _defaultInstance ??=
66+
$pb.GeneratedMessage.$_defaultFor<LocationResponse>(create);
67+
static LocationResponse? _defaultInstance;
68+
69+
@$pb.TagNumber(1)
70+
$core.String get id => $_getSZ(0);
71+
@$pb.TagNumber(1)
72+
set id($core.String value) => $_setString(0, value);
73+
@$pb.TagNumber(1)
74+
$core.bool hasId() => $_has(0);
75+
@$pb.TagNumber(1)
76+
void clearId() => $_clearField(1);
77+
78+
@$pb.TagNumber(2)
79+
$1.Location get location => $_getN(1);
80+
@$pb.TagNumber(2)
81+
set location($1.Location value) => $_setField(2, value);
82+
@$pb.TagNumber(2)
83+
$core.bool hasLocation() => $_has(1);
84+
@$pb.TagNumber(2)
85+
void clearLocation() => $_clearField(2);
86+
@$pb.TagNumber(2)
87+
$1.Location ensureLocation() => $_ensure(1);
88+
}
89+
90+
class GetLocationsRequest extends $pb.GeneratedMessage {
91+
factory GetLocationsRequest() => create();
92+
93+
GetLocationsRequest._();
94+
95+
factory GetLocationsRequest.fromBuffer($core.List<$core.int> data,
96+
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
97+
create()..mergeFromBuffer(data, registry);
98+
factory GetLocationsRequest.fromJson($core.String json,
99+
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
100+
create()..mergeFromJson(json, registry);
101+
102+
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
103+
_omitMessageNames ? '' : 'GetLocationsRequest',
104+
package: const $pb.PackageName(_omitMessageNames ? '' : 'tk.api'),
105+
createEmptyInstance: create)
106+
..hasRequiredFields = false;
107+
108+
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
109+
GetLocationsRequest clone() => deepCopy();
110+
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
111+
GetLocationsRequest copyWith(void Function(GetLocationsRequest) updates) =>
112+
super.copyWith((message) => updates(message as GetLocationsRequest))
113+
as GetLocationsRequest;
114+
115+
@$core.override
116+
$pb.BuilderInfo get info_ => _i;
117+
118+
@$core.pragma('dart2js:noInline')
119+
static GetLocationsRequest create() => GetLocationsRequest._();
120+
@$core.override
121+
GetLocationsRequest createEmptyInstance() => create();
122+
@$core.pragma('dart2js:noInline')
123+
static GetLocationsRequest getDefault() => _defaultInstance ??=
124+
$pb.GeneratedMessage.$_defaultFor<GetLocationsRequest>(create);
125+
static GetLocationsRequest? _defaultInstance;
126+
}
127+
128+
class GetLocationsResponse extends $pb.GeneratedMessage {
129+
factory GetLocationsResponse({
130+
$core.Iterable<LocationResponse>? locations,
131+
}) {
132+
final result = create();
133+
if (locations != null) result.locations.addAll(locations);
134+
return result;
135+
}
136+
137+
GetLocationsResponse._();
138+
139+
factory GetLocationsResponse.fromBuffer($core.List<$core.int> data,
140+
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
141+
create()..mergeFromBuffer(data, registry);
142+
factory GetLocationsResponse.fromJson($core.String json,
143+
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
144+
create()..mergeFromJson(json, registry);
145+
146+
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
147+
_omitMessageNames ? '' : 'GetLocationsResponse',
148+
package: const $pb.PackageName(_omitMessageNames ? '' : 'tk.api'),
149+
createEmptyInstance: create)
150+
..pPM<LocationResponse>(1, _omitFieldNames ? '' : 'locations',
151+
subBuilder: LocationResponse.create)
152+
..hasRequiredFields = false;
153+
154+
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
155+
GetLocationsResponse clone() => deepCopy();
156+
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
157+
GetLocationsResponse copyWith(void Function(GetLocationsResponse) updates) =>
158+
super.copyWith((message) => updates(message as GetLocationsResponse))
159+
as GetLocationsResponse;
160+
161+
@$core.override
162+
$pb.BuilderInfo get info_ => _i;
163+
164+
@$core.pragma('dart2js:noInline')
165+
static GetLocationsResponse create() => GetLocationsResponse._();
166+
@$core.override
167+
GetLocationsResponse createEmptyInstance() => create();
168+
@$core.pragma('dart2js:noInline')
169+
static GetLocationsResponse getDefault() => _defaultInstance ??=
170+
$pb.GeneratedMessage.$_defaultFor<GetLocationsResponse>(create);
171+
static GetLocationsResponse? _defaultInstance;
172+
173+
@$pb.TagNumber(1)
174+
$pb.PbList<LocationResponse> get locations => $_getList(0);
175+
}
176+
177+
class StreamLocationsRequest extends $pb.GeneratedMessage {
178+
factory StreamLocationsRequest() => create();
179+
180+
StreamLocationsRequest._();
181+
182+
factory StreamLocationsRequest.fromBuffer($core.List<$core.int> data,
183+
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
184+
create()..mergeFromBuffer(data, registry);
185+
factory StreamLocationsRequest.fromJson($core.String json,
186+
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
187+
create()..mergeFromJson(json, registry);
188+
189+
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
190+
_omitMessageNames ? '' : 'StreamLocationsRequest',
191+
package: const $pb.PackageName(_omitMessageNames ? '' : 'tk.api'),
192+
createEmptyInstance: create)
193+
..hasRequiredFields = false;
194+
195+
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
196+
StreamLocationsRequest clone() => deepCopy();
197+
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
198+
StreamLocationsRequest copyWith(
199+
void Function(StreamLocationsRequest) updates) =>
200+
super.copyWith((message) => updates(message as StreamLocationsRequest))
201+
as StreamLocationsRequest;
202+
203+
@$core.override
204+
$pb.BuilderInfo get info_ => _i;
205+
206+
@$core.pragma('dart2js:noInline')
207+
static StreamLocationsRequest create() => StreamLocationsRequest._();
208+
@$core.override
209+
StreamLocationsRequest createEmptyInstance() => create();
210+
@$core.pragma('dart2js:noInline')
211+
static StreamLocationsRequest getDefault() => _defaultInstance ??=
212+
$pb.GeneratedMessage.$_defaultFor<StreamLocationsRequest>(create);
213+
static StreamLocationsRequest? _defaultInstance;
214+
}
215+
216+
class StreamLocationsResponse extends $pb.GeneratedMessage {
217+
factory StreamLocationsResponse({
218+
$core.Iterable<LocationResponse>? locations,
219+
}) {
220+
final result = create();
221+
if (locations != null) result.locations.addAll(locations);
222+
return result;
223+
}
224+
225+
StreamLocationsResponse._();
226+
227+
factory StreamLocationsResponse.fromBuffer($core.List<$core.int> data,
228+
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
229+
create()..mergeFromBuffer(data, registry);
230+
factory StreamLocationsResponse.fromJson($core.String json,
231+
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
232+
create()..mergeFromJson(json, registry);
233+
234+
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
235+
_omitMessageNames ? '' : 'StreamLocationsResponse',
236+
package: const $pb.PackageName(_omitMessageNames ? '' : 'tk.api'),
237+
createEmptyInstance: create)
238+
..pPM<LocationResponse>(1, _omitFieldNames ? '' : 'locations',
239+
subBuilder: LocationResponse.create)
240+
..hasRequiredFields = false;
241+
242+
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
243+
StreamLocationsResponse clone() => deepCopy();
244+
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
245+
StreamLocationsResponse copyWith(
246+
void Function(StreamLocationsResponse) updates) =>
247+
super.copyWith((message) => updates(message as StreamLocationsResponse))
248+
as StreamLocationsResponse;
249+
250+
@$core.override
251+
$pb.BuilderInfo get info_ => _i;
252+
253+
@$core.pragma('dart2js:noInline')
254+
static StreamLocationsResponse create() => StreamLocationsResponse._();
255+
@$core.override
256+
StreamLocationsResponse createEmptyInstance() => create();
257+
@$core.pragma('dart2js:noInline')
258+
static StreamLocationsResponse getDefault() => _defaultInstance ??=
259+
$pb.GeneratedMessage.$_defaultFor<StreamLocationsResponse>(create);
260+
static StreamLocationsResponse? _defaultInstance;
261+
262+
@$pb.TagNumber(1)
263+
$pb.PbList<LocationResponse> get locations => $_getList(0);
264+
}
265+
266+
const $core.bool _omitFieldNames =
267+
$core.bool.fromEnvironment('protobuf.omit_field_names');
268+
const $core.bool _omitMessageNames =
269+
$core.bool.fromEnvironment('protobuf.omit_message_names');
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// This is a generated file - do not edit.
2+
//
3+
// Generated from api/location.proto.
4+
5+
// @dart = 3.3
6+
7+
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
8+
// ignore_for_file: constant_identifier_names
9+
// ignore_for_file: curly_braces_in_flow_control_structures
10+
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
11+
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports

0 commit comments

Comments
 (0)