refactor: Update spacing in AppCustomizationPage for improved layout
- Increased the spacing between UI elements in AppCustomizationPage from `Spacing.xs` to `Spacing.md` for better visual separation and improved user experience. - Adjusted the layout of the speech rate, pitch, and volume sliders to enhance overall UI consistency.
This commit is contained in:
@@ -526,7 +526,7 @@ class AppCustomizationPage extends ConsumerWidget {
|
|||||||
),
|
),
|
||||||
onTap: () => _showVoicePickerSheet(context, ref, settings),
|
onTap: () => _showVoicePickerSheet(context, ref, settings),
|
||||||
),
|
),
|
||||||
const SizedBox(height: Spacing.xs),
|
const SizedBox(height: Spacing.md),
|
||||||
// Speech Rate Slider
|
// Speech Rate Slider
|
||||||
_buildSliderTile(
|
_buildSliderTile(
|
||||||
context,
|
context,
|
||||||
@@ -544,7 +544,7 @@ class AppCustomizationPage extends ConsumerWidget {
|
|||||||
onChanged: (value) =>
|
onChanged: (value) =>
|
||||||
ref.read(appSettingsProvider.notifier).setTtsSpeechRate(value),
|
ref.read(appSettingsProvider.notifier).setTtsSpeechRate(value),
|
||||||
),
|
),
|
||||||
const SizedBox(height: Spacing.xs),
|
const SizedBox(height: Spacing.md),
|
||||||
// Pitch Slider
|
// Pitch Slider
|
||||||
_buildSliderTile(
|
_buildSliderTile(
|
||||||
context,
|
context,
|
||||||
@@ -562,7 +562,7 @@ class AppCustomizationPage extends ConsumerWidget {
|
|||||||
onChanged: (value) =>
|
onChanged: (value) =>
|
||||||
ref.read(appSettingsProvider.notifier).setTtsPitch(value),
|
ref.read(appSettingsProvider.notifier).setTtsPitch(value),
|
||||||
),
|
),
|
||||||
const SizedBox(height: Spacing.xs),
|
const SizedBox(height: Spacing.md),
|
||||||
// Volume Slider
|
// Volume Slider
|
||||||
_buildSliderTile(
|
_buildSliderTile(
|
||||||
context,
|
context,
|
||||||
@@ -580,7 +580,7 @@ class AppCustomizationPage extends ConsumerWidget {
|
|||||||
onChanged: (value) =>
|
onChanged: (value) =>
|
||||||
ref.read(appSettingsProvider.notifier).setTtsVolume(value),
|
ref.read(appSettingsProvider.notifier).setTtsVolume(value),
|
||||||
),
|
),
|
||||||
const SizedBox(height: Spacing.xs),
|
const SizedBox(height: Spacing.md),
|
||||||
// Preview Button
|
// Preview Button
|
||||||
_CustomizationTile(
|
_CustomizationTile(
|
||||||
leading: _buildIconBadge(
|
leading: _buildIconBadge(
|
||||||
|
|||||||
Reference in New Issue
Block a user