refactor: safe area paddings
This commit is contained in:
@@ -1023,7 +1023,7 @@ class _ChatPageState extends ConsumerState<ChatPage> {
|
|||||||
elevation: Elevation.none,
|
elevation: Elevation.none,
|
||||||
surfaceTintColor: Colors.transparent,
|
surfaceTintColor: Colors.transparent,
|
||||||
shadowColor: Colors.transparent,
|
shadowColor: Colors.transparent,
|
||||||
toolbarHeight: kToolbarHeight,
|
toolbarHeight: kToolbarHeight - 8,
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
titleSpacing: 0.0,
|
titleSpacing: 0.0,
|
||||||
leading: _isSelectionMode
|
leading: _isSelectionMode
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ class AppCustomizationPage extends ConsumerWidget {
|
|||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: context.conduitTheme.surfaceBackground,
|
backgroundColor: context.conduitTheme.surfaceBackground,
|
||||||
elevation: Elevation.none,
|
elevation: Elevation.none,
|
||||||
|
toolbarHeight: kToolbarHeight - 8,
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
UiUtils.platformIcon(
|
UiUtils.platformIcon(
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ class ProfilePage extends ConsumerWidget {
|
|||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: context.conduitTheme.surfaceBackground,
|
backgroundColor: context.conduitTheme.surfaceBackground,
|
||||||
elevation: Elevation.none,
|
elevation: Elevation.none,
|
||||||
|
toolbarHeight: kToolbarHeight - 8,
|
||||||
automaticallyImplyLeading: false,
|
automaticallyImplyLeading: false,
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
@@ -52,7 +53,7 @@ class ProfilePage extends ConsumerWidget {
|
|||||||
onPressed: () => Navigator.of(context).maybePop(),
|
onPressed: () => Navigator.of(context).maybePop(),
|
||||||
tooltip: AppLocalizations.of(context)!.back,
|
tooltip: AppLocalizations.of(context)!.back,
|
||||||
),
|
),
|
||||||
toolbarHeight: kToolbarHeight,
|
// keep reduced height only once
|
||||||
titleSpacing: 0.0,
|
titleSpacing: 0.0,
|
||||||
title: Text(
|
title: Text(
|
||||||
AppLocalizations.of(context)!.you,
|
AppLocalizations.of(context)!.you,
|
||||||
@@ -100,6 +101,7 @@ class ProfilePage extends ConsumerWidget {
|
|||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: context.conduitTheme.surfaceBackground,
|
backgroundColor: context.conduitTheme.surfaceBackground,
|
||||||
elevation: Elevation.none,
|
elevation: Elevation.none,
|
||||||
|
toolbarHeight: kToolbarHeight - 8,
|
||||||
automaticallyImplyLeading: false,
|
automaticallyImplyLeading: false,
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
@@ -132,6 +134,7 @@ class ProfilePage extends ConsumerWidget {
|
|||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: context.conduitTheme.surfaceBackground,
|
backgroundColor: context.conduitTheme.surfaceBackground,
|
||||||
elevation: Elevation.none,
|
elevation: Elevation.none,
|
||||||
|
toolbarHeight: kToolbarHeight - 8,
|
||||||
automaticallyImplyLeading: false,
|
automaticallyImplyLeading: false,
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
|
|||||||
Reference in New Issue
Block a user