refactor: remove omitProviderInModelName functionality and related localization
- Removed the omitProviderInModelName key from PreferenceKeys and its associated logic throughout the codebase. - Updated SettingsService and AppSettings to eliminate references to the omitted provider functionality. - Cleaned up related localization strings in multiple languages to reflect the removal of this feature. - Enhanced code clarity and maintainability by streamlining settings management.
This commit is contained in:
@@ -157,28 +157,6 @@ class AppCustomizationPage extends ConsumerWidget {
|
||||
}
|
||||
},
|
||||
),
|
||||
const SizedBox(height: Spacing.md),
|
||||
_CustomizationTile(
|
||||
leading: _buildIconBadge(
|
||||
context,
|
||||
Platform.isIOS ? CupertinoIcons.textformat : Icons.text_fields,
|
||||
color: theme.buttonPrimary,
|
||||
),
|
||||
title: AppLocalizations.of(context)!.hideProviderInModelNames,
|
||||
subtitle: AppLocalizations.of(
|
||||
context,
|
||||
)!.hideProviderInModelNamesDescription,
|
||||
trailing: Switch.adaptive(
|
||||
value: settings.omitProviderInModelName,
|
||||
onChanged: (v) => ref
|
||||
.read(appSettingsProvider.notifier)
|
||||
.setOmitProviderInModelName(v),
|
||||
),
|
||||
showChevron: false,
|
||||
onTap: () => ref
|
||||
.read(appSettingsProvider.notifier)
|
||||
.setOmitProviderInModelName(!settings.omitProviderInModelName),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user