Remove Cupertino settings branches

Keep the Material settings implementation while preserving public Cupertino parameters for later cleanup. Narrow settings tests to the Material-only behavior.
This commit is contained in:
2026-11-11 05:21:30 +00:00
parent 75fd194394
commit 3933ff980c
18 changed files with 191 additions and 503 deletions
@@ -1,6 +1,5 @@
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'settings_controller.dart';
@@ -111,8 +110,8 @@ Widget settingsConnectionFooter(SettingsController controller) => Column(
);
/// Workspace controls. The path is resolved by the execution server, and the
/// helper says so explicitly; an empty saved value is named "(none)". Save
/// stays a legible tonal (Cupertino: plain) button while it is unavailable.
/// helper says so explicitly; an empty saved value is named "(none)". Save is
/// a tonal button while it is unavailable.
class SettingsWorkspaceSection extends StatelessWidget {
const SettingsWorkspaceSection({
super.key,
@@ -150,22 +149,11 @@ class SettingsWorkspaceSection extends StatelessWidget {
runSpacing: settingsFieldGap,
crossAxisAlignment: WrapCrossAlignment.center,
children: <Widget>[
if (usesCupertinoControls(context))
// A tinted button keeps its shape when disabled, so an
// unsaved-nothing state reads as a disabled button,
// not as stray grey text.
CupertinoButton.tinted(
key: SettingsKeys.saveWorkspace,
sizeStyle: CupertinoButtonSize.small,
onPressed: save,
child: const Text('Save workspace'),
)
else
FilledButton.tonal(
key: SettingsKeys.saveWorkspace,
onPressed: save,
child: const Text('Save workspace'),
),
FilledButton.tonal(
key: SettingsKeys.saveWorkspace,
onPressed: save,
child: const Text('Save workspace'),
),
Text(
savedWorkspaceLine(controller.savedWorkspace),
style: settingsTextStyle(context, secondary: true),