session crud #5

Merged
jshbrmn merged 22 commits from session-crud into main 2025-01-05 19:02:13 -08:00
2 changed files with 17 additions and 11 deletions
Showing only changes of commit 95701c73a6 - Show all commits

View File

@ -8,10 +8,11 @@ import 'package:sendtrain/widgets/generic/elements/form_text_input.dart';
class FormSearchInput extends StatefulWidget { class FormSearchInput extends StatefulWidget {
const FormSearchInput( const FormSearchInput(
{super.key, required this.sessionController, required this.service, this.optionalPayload}); {super.key, required this.sessionController, required this.service, this.requestCallback, this.optionalPayload});
final TextEditingController sessionController; final TextEditingController sessionController;
final dynamic service; final dynamic service;
final Function? requestCallback;
final dynamic optionalPayload; final dynamic optionalPayload;
@override @override
@ -22,7 +23,7 @@ class _FormSearchInputState extends State<FormSearchInput> {
String? _currentQuery; String? _currentQuery;
late final service = widget.service; late final service = widget.service;
late final requestCallback = widget.requestCallback;
// The most recent suggestions received from the API. // The most recent suggestions received from the API.
late Iterable<Widget> _lastOptions = <Widget>[]; late Iterable<Widget> _lastOptions = <Widget>[];
late final Debouncer debouncer; late final Debouncer debouncer;

View File

@ -39,15 +39,20 @@ class _SessionViewActivitiesState extends State<SessionViewActivities> {
padding: const EdgeInsets.fromLTRB(10, 0, 10, 0), padding: const EdgeInsets.fromLTRB(10, 0, 10, 0),
children: [ children: [
Card.outlined( Card.outlined(
child: ListTile( child: InkWell(
contentPadding: EdgeInsets.only(top: 5, left: 15, right: 5, bottom: 5), customBorder: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10),
),
onTap: () {}, onTap: () {},
child: ListTile(
contentPadding: EdgeInsets.only(
top: 5, left: 15, right: 5, bottom: 5),
autofocus: true, autofocus: true,
leading: Icon(Icons.add_box_rounded), leading: Icon(Icons.add_box_rounded),
title: Text('Add an Activity!'), title: Text('Add an Activity!'),
subtitle: Text( subtitle: Text(
'Here you can associate one or more activities that you can follow during your session.'), 'Here you can associate one or more activities that you can follow during your session.'),
)) )))
])); ]));
} }
} else { } else {