mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:17:11 -05:00 
			
		
		
		
	feat(mobile): optimize screen space usage (#2911)
* feat(mobile): optimize screen space usage * undo nav bar changes
This commit is contained in:
		
							parent
							
								
									cf1eddb449
								
							
						
					
					
						commit
						3e2f335a4c
					
				@ -29,8 +29,8 @@ class GroupDividerTitle extends ConsumerWidget {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    return Padding(
 | 
					    return Padding(
 | 
				
			||||||
      padding: const EdgeInsets.only(
 | 
					      padding: const EdgeInsets.only(
 | 
				
			||||||
        top: 29.0,
 | 
					        top: 12.0,
 | 
				
			||||||
        bottom: 10.0,
 | 
					        bottom: 4.0,
 | 
				
			||||||
        left: 12.0,
 | 
					        left: 12.0,
 | 
				
			||||||
        right: 12.0,
 | 
					        right: 12.0,
 | 
				
			||||||
      ),
 | 
					      ),
 | 
				
			||||||
 | 
				
			|||||||
@ -127,7 +127,7 @@ class ImmichAssetGridViewState extends State<ImmichAssetGridView> {
 | 
				
			|||||||
          width: width * widthDistribution[index],
 | 
					          width: width * widthDistribution[index],
 | 
				
			||||||
          height: width,
 | 
					          height: width,
 | 
				
			||||||
          margin: EdgeInsets.only(
 | 
					          margin: EdgeInsets.only(
 | 
				
			||||||
            top: widget.margin,
 | 
					            bottom: widget.margin,
 | 
				
			||||||
            right: last ? 0.0 : widget.margin,
 | 
					            right: last ? 0.0 : widget.margin,
 | 
				
			||||||
          ),
 | 
					          ),
 | 
				
			||||||
          child: _buildThumbnailOrPlaceholder(asset, absoluteOffset + index),
 | 
					          child: _buildThumbnailOrPlaceholder(asset, absoluteOffset + index),
 | 
				
			||||||
@ -157,7 +157,7 @@ class ImmichAssetGridViewState extends State<ImmichAssetGridView> {
 | 
				
			|||||||
    final String title = monthFormat.format(date);
 | 
					    final String title = monthFormat.format(date);
 | 
				
			||||||
    return Padding(
 | 
					    return Padding(
 | 
				
			||||||
      key: Key("month-$title"),
 | 
					      key: Key("month-$title"),
 | 
				
			||||||
      padding: const EdgeInsets.only(left: 12.0, top: 30),
 | 
					      padding: const EdgeInsets.only(left: 12.0, top: 24.0),
 | 
				
			||||||
      child: Text(
 | 
					      child: Text(
 | 
				
			||||||
        title,
 | 
					        title,
 | 
				
			||||||
        style: TextStyle(
 | 
					        style: TextStyle(
 | 
				
			||||||
@ -179,7 +179,7 @@ class ImmichAssetGridViewState extends State<ImmichAssetGridView> {
 | 
				
			|||||||
            width: width,
 | 
					            width: width,
 | 
				
			||||||
            height: height,
 | 
					            height: height,
 | 
				
			||||||
            margin: EdgeInsets.only(
 | 
					            margin: EdgeInsets.only(
 | 
				
			||||||
              top: widget.margin,
 | 
					              bottom: widget.margin,
 | 
				
			||||||
              right: i + 1 == num ? 0.0 : widget.margin,
 | 
					              right: i + 1 == num ? 0.0 : widget.margin,
 | 
				
			||||||
            ),
 | 
					            ),
 | 
				
			||||||
            color: Colors.grey,
 | 
					            color: Colors.grey,
 | 
				
			||||||
 | 
				
			|||||||
@ -112,7 +112,6 @@ class TabControllerPage extends HookConsumerWidget {
 | 
				
			|||||||
            ),
 | 
					            ),
 | 
				
			||||||
            selectedIcon: buildIcon(
 | 
					            selectedIcon: buildIcon(
 | 
				
			||||||
              Icon(
 | 
					              Icon(
 | 
				
			||||||
                size: 24,
 | 
					 | 
				
			||||||
                Icons.photo_library,
 | 
					                Icons.photo_library,
 | 
				
			||||||
                color: Theme.of(context).primaryColor,
 | 
					                color: Theme.of(context).primaryColor,
 | 
				
			||||||
              ),
 | 
					              ),
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user