diff --git a/lib/src/ui/wishlist/wishlist_page.dart b/lib/src/ui/wishlist/wishlist_page.dart index 78f45e4..7c99c53 100644 --- a/lib/src/ui/wishlist/wishlist_page.dart +++ b/lib/src/ui/wishlist/wishlist_page.dart @@ -1,6 +1,8 @@ import 'package:dantex/src/data/book/entity/book_state.dart'; import 'package:dantex/src/ui/core/themed_app_bar.dart'; import 'package:dantex/src/ui/main/book_state_page.dart'; +import 'package:dantex/src/util/layout_utils.dart'; +import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; class WishlistPage extends StatelessWidget { @@ -8,14 +10,19 @@ class WishlistPage extends StatelessWidget { @override Widget build(BuildContext context) { - return const Scaffold( - // TODO Show app bar only on mobile devices - appBar: ThemedAppBar( - title: Text('Wishlist'), - ), - body: Center( - child: BookStatePage(BookState.wishlist), - ), + return LayoutBuilder( + builder: (context, constraints) { + return Scaffold( + appBar: ThemedAppBar( + title: isDesktop(constraints) + ? null + : Text('navigation.wishlist'.tr()) + ), + body: const Center( + child: BookStatePage(BookState.wishlist), + ), + ); + }, ); } }