proper list view clipping

This commit is contained in:
Joshua Burman 2025-01-03 22:03:51 -05:00
parent 2eb5d8f171
commit 95701c73a6
2 changed files with 17 additions and 11 deletions

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 {