Skip to content

Commit 8aebe78

Browse files
committed
removed activity selector
1 parent 8005951 commit 8aebe78

File tree

3 files changed

+35
-35
lines changed

3 files changed

+35
-35
lines changed

lib/main.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ void main() async {
3030
await FirebaseAuth.instance.useAuthEmulator(host, 9099);
3131
print("USING LOCAL EMULATED STORAGE: port 9199");
3232
await FirebaseStorage.instance.useStorageEmulator(host, 9199);
33-
print("USING LOCAL EMULATED FUNCTIONS: ports 5001, 5011");
34-
FirebaseFunctions.instance.useFunctionsEmulator(host, 5001); // main functions workspace emulator
35-
FirebaseFunctions.instance.useFunctionsEmulator(host, 5011); // user functions (create, get)
33+
print("USING LOCAL EMULATED FUNCTIONS: port 5001");
34+
FirebaseFunctions.instance.useFunctionsEmulator(host, 5001);
3635
print("EMULATOR HOST: $host");
3736
} else {
3837
print("USING REMOTE FIREBASE AUTH");

lib/screens/main/chat.dart

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,8 @@ class _ChatScreenState extends State<ChatScreen> {
415415
heightFactor: 0.65,
416416
child: _holdToChatButton(context),
417417
)
418-
: _activitySelector(context),
418+
// : _activitySelector(context),
419+
: SizedBox(),
419420
),
420421
),
421422
]);
@@ -465,37 +466,6 @@ class _ChatScreenState extends State<ChatScreen> {
465466
]);
466467
}
467468

468-
Widget _activitySelector(BuildContext context) {
469-
List<String> activityNames = _activities.map((a) => a.name).toSet().toList();
470-
// print("chat: _activitySelector: activityNames: $activityNames");
471-
// print("chat: _activitySelector: _activity: ${_activity?.title}");
472-
return DropdownButton<String>(
473-
value: _activity?.name,
474-
icon: const Icon(Icons.arrow_downward),
475-
iconSize: 24,
476-
elevation: 16,
477-
style: Theme.of(context).textTheme.headlineSmall,
478-
underline: Container(
479-
height: 2,
480-
color: Theme.of(context).colorScheme.onSurface,
481-
),
482-
onChanged: (String? newValue) {
483-
// print("chat: _activitySelector: onChanged: newValue: $newValue");
484-
// print("chat: _activitySelector: onChanged: _activities: ${_activities.map((a) => a.name).toList()}");
485-
// print("chat: _activitySelector: onChanged: _activity: ${_activity?.title}");
486-
setState(() {
487-
_activity = _activities.firstWhere((a) => a.name == newValue);
488-
});
489-
},
490-
items: activityNames.map<DropdownMenuItem<String>>((String value) {
491-
return DropdownMenuItem<String>(
492-
value: value,
493-
child: Text(value, style: Theme.of(context).textTheme.headlineSmall),
494-
);
495-
}).toList(),
496-
);
497-
}
498-
499469
Widget _callButton(BuildContext context) {
500470
String buttonText = (callStatus == CallStatus.inCall) ? "End" : "Start";
501471
return FloatingActionButton.extended(
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
// Widget _activitySelector(BuildContext context) {
3+
// List<String> activityNames = _activities.map((a) => a.name).toSet().toList();
4+
// // print("chat: _activitySelector: activityNames: $activityNames");
5+
// // print("chat: _activitySelector: _activity: ${_activity?.title}");
6+
// return DropdownButton<String>(
7+
// value: _activity?.name,
8+
// icon: const Icon(Icons.arrow_downward),
9+
// iconSize: 24,
10+
// elevation: 16,
11+
// style: Theme.of(context).textTheme.headlineSmall,
12+
// underline: Container(
13+
// height: 2,
14+
// color: Theme.of(context).colorScheme.onSurface,
15+
// ),
16+
// onChanged: (String? newValue) {
17+
// // print("chat: _activitySelector: onChanged: newValue: $newValue");
18+
// // print("chat: _activitySelector: onChanged: _activities: ${_activities.map((a) => a.name).toList()}");
19+
// // print("chat: _activitySelector: onChanged: _activity: ${_activity?.title}");
20+
// setState(() {
21+
// _activity = _activities.firstWhere((a) => a.name == newValue);
22+
// });
23+
// },
24+
// items: activityNames.map<DropdownMenuItem<String>>((String value) {
25+
// return DropdownMenuItem<String>(
26+
// value: value,
27+
// child: Text(value, style: Theme.of(context).textTheme.headlineSmall),
28+
// );
29+
// }).toList(),
30+
// );
31+
// }

0 commit comments

Comments
 (0)