Untitled
unknown
plain_text
a month ago
2.4 kB
2
Indexable
Never
Expanded( child: Row( children: [ // Close icon Expanded( child: Align( alignment: Alignment.centerLeft, child: _IconButton( iconData: Icons.close, onPressed: widget.onClose, ), ), ), // Album name and media receiver name FittedBox( child: _AlbumDetail( subtitle: widget.headerSubtitle, controller: _controller, albums: widget.albums, ), ), // Dropdown Expanded( child: Row( children: [ const SizedBox(width: 16), _AnimatedDropdown( controller: _controller, onPressed: widget.onAlbumToggle, albumVisibility: _controller.albumVisibility, ), const Spacer(), if (_controller.setting.selectionMode == SelectionMode.actionBased) GalleryBuilder( controller: _controller, builder: (value, child) { return InkWell( onTap: () { if (_controller.value.isAlbumVisible) { widget.onAlbumToggle(true); } else { _controller.toogleMultiSelection(); } }, child: Icon( CupertinoIcons.rectangle_stack, color: value.enableMultiSelection ? Colors.white : Colors.white38, ), ); }, ), const SizedBox(width: 16), ], ), ), // ], ), ),
Leave a Comment