diff --git a/packages/flutter_mimir/example/lib/main.dart b/packages/flutter_mimir/example/lib/main.dart index 451ed6a..3662ee7 100644 --- a/packages/flutter_mimir/example/lib/main.dart +++ b/packages/flutter_mimir/example/lib/main.dart @@ -85,21 +85,17 @@ class Body extends HookConsumerWidget { ), ), ), - body: Column(children: [ - Expanded( - child: searchResults.when( - data: (searchResults) => ListView.builder( - padding: const EdgeInsets.only(top: 16, bottom: 8), - itemCount: searchResults.length, - itemBuilder: (_, index) => MovieCard(movie: searchResults[index]), - ), - error: (e, s) => Center(child: Text('Error: $e')), - loading: () => const Center( - child: CircularProgressIndicator.adaptive(), - ), - ), + body: searchResults.when( + data: (searchResults) => ListView.builder( + padding: const EdgeInsets.only(top: 16, bottom: 8), + itemCount: searchResults.length, + itemBuilder: (_, index) => MovieCard(movie: searchResults[index]), ), - ]), + error: (e, s) => Center(child: Text('Error: $e')), + loading: () => const Center( + child: CircularProgressIndicator.adaptive(), + ), + ), ); } } diff --git a/packages/mimir/example/lib/example.dart b/packages/mimir/example/lib/example.dart index 52e924a..05c7028 100644 --- a/packages/mimir/example/lib/example.dart +++ b/packages/mimir/example/lib/example.dart @@ -74,8 +74,7 @@ Future run(String path, DynamicLibrary lib) async { // Let's sort the results by year in descending order here (new to old): SortBy.desc('year'), // If any two movies had the same year, we could sort by title next: - // To enable sorting by title, add it to the sortableFields above - // SortBy.asc('title'), + SortBy.asc('title'), ], );