mirror of
https://github.com/flutter/samples.git
synced 2026-04-05 03:01:19 +00:00
Samples maintenance (#435)
This commit is contained in:
@@ -12,7 +12,7 @@ class PlaceList extends StatefulWidget {
|
||||
}
|
||||
|
||||
class PlaceListState extends State<PlaceList> {
|
||||
ScrollController _scrollController = ScrollController();
|
||||
final ScrollController _scrollController = ScrollController();
|
||||
|
||||
void _onCategoryChanged(PlaceCategory newCategory) {
|
||||
_scrollController.jumpTo(0.0);
|
||||
@@ -107,7 +107,7 @@ class _PlaceListTile extends StatelessWidget {
|
||||
}).toList(),
|
||||
),
|
||||
Text(
|
||||
place.description != null ? place.description : '',
|
||||
place.description ?? '',
|
||||
style: Theme.of(context).textTheme.subtitle1,
|
||||
maxLines: 4,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
|
||||
Reference in New Issue
Block a user