remote mount provider support
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
This commit is contained in:
parent
28cfcc0344
commit
23de275e11
@ -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;
|
||||
|
@ -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(),
|
||||
),
|
||||
);
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user