mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	Added Tab Bar, search bar and suggested search terms from assets metadata, tags (#35)
This commit is contained in:
		@@ -12,11 +12,9 @@ import 'package:immich_mobile/shared/providers/backup.provider.dart';
 | 
			
		||||
class ImmichSliverAppBar extends ConsumerWidget {
 | 
			
		||||
  const ImmichSliverAppBar({
 | 
			
		||||
    Key? key,
 | 
			
		||||
    required this.imageGridGroup,
 | 
			
		||||
    this.onPopBack,
 | 
			
		||||
  }) : super(key: key);
 | 
			
		||||
 | 
			
		||||
  final List<Widget> imageGridGroup;
 | 
			
		||||
  final Function? onPopBack;
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
@@ -46,7 +44,7 @@ class ImmichSliverAppBar extends ConsumerWidget {
 | 
			
		||||
        style: GoogleFonts.snowburstOne(
 | 
			
		||||
          textStyle: TextStyle(
 | 
			
		||||
            fontWeight: FontWeight.bold,
 | 
			
		||||
            fontSize: 18,
 | 
			
		||||
            fontSize: 22,
 | 
			
		||||
            color: Theme.of(context).primaryColor,
 | 
			
		||||
          ),
 | 
			
		||||
        ),
 | 
			
		||||
 
 | 
			
		||||
@@ -31,10 +31,6 @@ class HomePage extends HookConsumerWidget {
 | 
			
		||||
      return null;
 | 
			
		||||
    }, []);
 | 
			
		||||
 | 
			
		||||
    onPopBackFromBackupPage() {
 | 
			
		||||
      // ref.read(assetProvider.notifier).getAllAsset();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    Widget _buildBody() {
 | 
			
		||||
      if (assetGroupByDateTime.isNotEmpty) {
 | 
			
		||||
        int? lastMonth;
 | 
			
		||||
@@ -88,10 +84,7 @@ class HomePage extends HookConsumerWidget {
 | 
			
		||||
                              child: null,
 | 
			
		||||
                            ),
 | 
			
		||||
                          )
 | 
			
		||||
                        : ImmichSliverAppBar(
 | 
			
		||||
                            imageGridGroup: _imageGridGroup,
 | 
			
		||||
                            onPopBack: onPopBackFromBackupPage,
 | 
			
		||||
                          ),
 | 
			
		||||
                        : const ImmichSliverAppBar(),
 | 
			
		||||
                    duration: const Duration(milliseconds: 350),
 | 
			
		||||
                  ),
 | 
			
		||||
                  ..._imageGridGroup
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user