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 {
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 dynamic service;
final Function? requestCallback;
final dynamic optionalPayload;
@override
@ -22,7 +23,7 @@ class _FormSearchInputState extends State<FormSearchInput> {
String? _currentQuery;
late final service = widget.service;
late final requestCallback = widget.requestCallback;
// The most recent suggestions received from the API.
late Iterable<Widget> _lastOptions = <Widget>[];
late final Debouncer debouncer;

View File

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