abdicate object assigning responsibility
The ImagesService itself handles the conversion of Json to the object itself, instead of the ImagesApi
This commit is contained in:
parent
a0ed894016
commit
6a84a9bef0
9 changed files with 255 additions and 25 deletions
|
@ -46,9 +46,9 @@ class GalleryView extends StatelessWidget {
|
|||
],
|
||||
builder: (context, final values, child) => !model.isDisplayingPressingPrompt.value
|
||||
? IconButton(
|
||||
icon: !model.isSearchingListenable.value
|
||||
? const Icon(Icons.search)
|
||||
: const Icon(Icons.close),
|
||||
isSelected: model.isSearchingListenable.value,
|
||||
icon: const Icon(Icons.search),
|
||||
selectedIcon: const Icon(Icons.close),
|
||||
onPressed: model.searchPressed,
|
||||
)
|
||||
: const SizedBox.shrink(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue