🐛 Fix compose toolbar safe area issue
This commit is contained in:
		@@ -423,6 +423,7 @@ class PostComposeCard extends HookConsumerWidget {
 | 
				
			|||||||
                  state: composeState,
 | 
					                  state: composeState,
 | 
				
			||||||
                  originalPost: originalPost,
 | 
					                  originalPost: originalPost,
 | 
				
			||||||
                  isCompact: true,
 | 
					                  isCompact: true,
 | 
				
			||||||
 | 
					                  useSafeArea: isContained,
 | 
				
			||||||
                ),
 | 
					                ),
 | 
				
			||||||
              ),
 | 
					              ),
 | 
				
			||||||
            ),
 | 
					            ),
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,12 +14,14 @@ class ComposeToolbar extends HookConsumerWidget {
 | 
				
			|||||||
  final ComposeState state;
 | 
					  final ComposeState state;
 | 
				
			||||||
  final SnPost? originalPost;
 | 
					  final SnPost? originalPost;
 | 
				
			||||||
  final bool isCompact;
 | 
					  final bool isCompact;
 | 
				
			||||||
 | 
					  final bool useSafeArea;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const ComposeToolbar({
 | 
					  const ComposeToolbar({
 | 
				
			||||||
    super.key,
 | 
					    super.key,
 | 
				
			||||||
    required this.state,
 | 
					    required this.state,
 | 
				
			||||||
    this.originalPost,
 | 
					    this.originalPost,
 | 
				
			||||||
    this.isCompact = false,
 | 
					    this.isCompact = false,
 | 
				
			||||||
 | 
					    this.useSafeArea = false,
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  @override
 | 
					  @override
 | 
				
			||||||
@@ -200,7 +202,12 @@ class ComposeToolbar extends HookConsumerWidget {
 | 
				
			|||||||
                    ),
 | 
					                    ),
 | 
				
			||||||
                  ),
 | 
					                  ),
 | 
				
			||||||
              ],
 | 
					              ],
 | 
				
			||||||
            ).padding(horizontal: 8, vertical: 4),
 | 
					            ).padding(
 | 
				
			||||||
 | 
					              horizontal: 8,
 | 
				
			||||||
 | 
					              top: 4,
 | 
				
			||||||
 | 
					              bottom:
 | 
				
			||||||
 | 
					                  useSafeArea ? MediaQuery.of(context).padding.bottom + 4 : 4,
 | 
				
			||||||
 | 
					            ),
 | 
				
			||||||
          ),
 | 
					          ),
 | 
				
			||||||
        ),
 | 
					        ),
 | 
				
			||||||
      );
 | 
					      );
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user