Skip to content

Commit addb69e

Browse files
committed
💬 Add more fields to text delegates
1 parent 31543e6 commit addb69e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/src/delegates/assets_picker_text_delegate.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ class AssetsPickerTextDelegate {
4949
/// "Unable to access all assets in album".
5050
String get unableToAccessAll => '无法访问所有资源';
5151

52+
String get viewingLimitedAssetsTip => '应用只能访问部分资源和相册';
53+
5254
String get accessAllTip => '你已设置应用只能访问设备部分资源,'
5355
'建议允许访问「所有资源」';
5456

@@ -57,6 +59,8 @@ class AssetsPickerTextDelegate {
5759
/// "Continue accessing some assets".
5860
String get accessLimitedAssets => '继续访问部分资源';
5961

62+
String get accessiblePathName => '可访问的资源';
63+
6064
/// This is used in video asset item in the picker, in order
6165
/// to display the duration of the video or audio type of asset.
6266
/// 该字段用在选择器视频或音频部件上,用于显示视频或音频资源的时长。
@@ -106,6 +110,10 @@ class EnglishTextDelegate extends AssetsPickerTextDelegate {
106110
@override
107111
String get unableToAccessAll => 'Unable to access all assets on the device';
108112

113+
@override
114+
String get viewingLimitedAssetsTip =>
115+
'Only view assets and albums accessible to app.';
116+
109117
@override
110118
String get accessAllTip => 'App can only access some assets on the device.'
111119
'Go to system settings and allow app to access all assets on the device.';
@@ -115,6 +123,9 @@ class EnglishTextDelegate extends AssetsPickerTextDelegate {
115123

116124
@override
117125
String get accessLimitedAssets => 'Continue accessing some assets';
126+
127+
@override
128+
String get accessiblePathName => 'Accessible assets';
118129
}
119130

120131
/// [AssetsPickerTextDelegate] implements with Hebrew.

0 commit comments

Comments
 (0)