remove advanced from add
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2025-03-22 07:38:16 -05:00
parent 58841986f3
commit c52c919607

View File

@ -28,7 +28,6 @@ class _AddMountScreenState extends State<AddMountScreen> {
"S3": createDefaultSettings("S3"), "S3": createDefaultSettings("S3"),
"Sia": createDefaultSettings("Sia"), "Sia": createDefaultSettings("Sia"),
}; };
bool _showAdvanced = false;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -37,20 +36,6 @@ class _AddMountScreenState extends State<AddMountScreen> {
backgroundColor: Theme.of(context).colorScheme.inversePrimary, backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: Text(widget.title), title: Text(widget.title),
actions: [ actions: [
Row(
children: [
Row(
children: [
const Text("Advanced"),
IconButton(
icon: Icon(
_showAdvanced ? Icons.toggle_on : Icons.toggle_off,
),
onPressed:
() => setState(() => _showAdvanced = !_showAdvanced),
),
],
),
Consumer<Auth>( Consumer<Auth>(
builder: (context, auth, _) { builder: (context, auth, _) {
return IconButton( return IconButton(
@ -61,8 +46,6 @@ class _AddMountScreenState extends State<AddMountScreen> {
), ),
], ],
), ),
],
),
body: Padding( body: Padding(
padding: const EdgeInsets.all(constants.padding), padding: const EdgeInsets.all(constants.padding),
child: Consumer<Auth>( child: Consumer<Auth>(
@ -141,7 +124,7 @@ class _AddMountScreenState extends State<AddMountScreen> {
isAdd: true, isAdd: true,
mount: _mount!, mount: _mount!,
settings: _settings[_mountType]!, settings: _settings[_mountType]!,
showAdvanced: _showAdvanced, showAdvanced: false,
), ),
), ),
), ),