updates
This commit is contained in:
parent
2ce32cac4e
commit
b6639fb1c9
26 changed files with 454 additions and 204 deletions
|
|
@ -32,9 +32,9 @@ class _SearchScreenState extends ConsumerState<SearchScreen> {
|
|||
controller: _controller,
|
||||
autofocus: true,
|
||||
textInputAction: TextInputAction.search,
|
||||
style: const TextStyle(color: TimbreColors.foreground),
|
||||
style: TextStyle(color: TimbreColors.foreground),
|
||||
cursorColor: accent,
|
||||
decoration: const InputDecoration(
|
||||
decoration: InputDecoration(
|
||||
hintText: 'Search artists, albums, songs…',
|
||||
hintStyle: TextStyle(color: TimbreColors.dimmed),
|
||||
border: InputBorder.none,
|
||||
|
|
@ -44,7 +44,7 @@ class _SearchScreenState extends ConsumerState<SearchScreen> {
|
|||
),
|
||||
body: SafeArea(
|
||||
child: _query.trim().isEmpty
|
||||
? const Center(
|
||||
? Center(
|
||||
child: Text('Type and press search.',
|
||||
style: TextStyle(color: TimbreColors.dimmed)),
|
||||
)
|
||||
|
|
@ -71,11 +71,11 @@ class _Results extends ConsumerWidget {
|
|||
),
|
||||
),
|
||||
error: (e, _) => Center(
|
||||
child: Text('$e', style: const TextStyle(color: TimbreColors.dimmed)),
|
||||
child: Text('$e', style: TextStyle(color: TimbreColors.dimmed)),
|
||||
),
|
||||
data: (r) {
|
||||
if (r.artists.isEmpty && r.albums.isEmpty && r.songs.isEmpty) {
|
||||
return const Center(
|
||||
return Center(
|
||||
child: Text('No results.',
|
||||
style: TextStyle(color: TimbreColors.dimmed)),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue