Skip to content

Commit 4d74755

Browse files
committed
refactor: Remove unused _buildSwitchField widget
1 parent 7a43723 commit 4d74755

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

lib/app_configuration/view/app_configuration_page.dart

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -721,40 +721,6 @@ class _AppConfigurationPageState extends State<AppConfigurationPage>
721721
);
722722
}
723723

724-
Widget _buildSwitchField(
725-
BuildContext context, {
726-
required String label,
727-
required String description,
728-
required bool value,
729-
required ValueChanged<bool> onChanged,
730-
}) {
731-
return Padding(
732-
padding: const EdgeInsets.symmetric(vertical: AppSpacing.sm),
733-
child: Column(
734-
crossAxisAlignment: CrossAxisAlignment.start,
735-
children: [
736-
Text(
737-
label,
738-
style: Theme.of(context).textTheme.titleMedium,
739-
),
740-
const SizedBox(height: AppSpacing.xs),
741-
Text(
742-
description,
743-
style: Theme.of(context).textTheme.bodySmall?.copyWith(
744-
color: Theme.of(context).colorScheme.onSurface.withOpacity(0.7),
745-
),
746-
),
747-
SwitchListTile(
748-
title: Text(label),
749-
value: value,
750-
onChanged: onChanged,
751-
contentPadding: EdgeInsets.zero,
752-
),
753-
],
754-
),
755-
);
756-
}
757-
758724
Widget _buildDropdownField<T>(
759725
BuildContext context, {
760726
required String label,

0 commit comments

Comments
 (0)