remote mount provider support
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2025-03-15 22:18:42 -05:00
parent 28cfcc0344
commit 23de275e11
2 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,6 @@ import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'package:repertory/constants.dart' as constants;
import 'package:repertory/helpers.dart';
import 'package:repertory/models/mount_list.dart';
import 'package:repertory/types/mount_config.dart';
@ -18,6 +17,7 @@ class Mount with ChangeNotifier {
}
String? get bucket => mountConfig.bucket;
String get id => '${type}_$name';
String get name => mountConfig.name;
String get path => mountConfig.path;
IconData? get state => mountConfig.state;

View File

@ -15,6 +15,7 @@ class MountListWidget extends StatelessWidget {
itemBuilder: (context, idx) {
return ChangeNotifierProvider(
create: (context) => mountList.items[idx],
key: ValueKey(mountList.items[idx].id),
child: Padding(
padding: EdgeInsets.only(
bottom:
@ -22,7 +23,7 @@ class MountListWidget extends StatelessWidget {
? 0.0
: constants.padding,
),
child: const MountWidget(),
child: MountWidget(),
),
);
},