|
|
|
@ -31,58 +31,61 @@ class _XdgaDirectoriesPageState extends AppState<XdgaDirectoriesPage> {
|
|
|
|
|
title: widget.package.key, |
|
|
|
|
builder: (context, child, model) { |
|
|
|
|
return SingleChildScrollView( |
|
|
|
|
child: Column( |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
BlockInfoPackage(widget.package), |
|
|
|
|
BlockAlert(model.error), |
|
|
|
|
if (!model.isError) |
|
|
|
|
Column( |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
BlockItem( |
|
|
|
|
title: l10n.xdgaDirectoriesTitleCacheLocation, |
|
|
|
|
desc: l10n.xdgaDirectoriesDescCacheLocation, |
|
|
|
|
value: model.getCacheLocation(), |
|
|
|
|
), |
|
|
|
|
BlockItem( |
|
|
|
|
title: l10n.xdgaDirectoriesTitleAppDataLocation, |
|
|
|
|
desc: l10n.xdgaDirectoriesDescAppDataLocation, |
|
|
|
|
value: model.getAppDataLocation(), |
|
|
|
|
), |
|
|
|
|
BlockItem( |
|
|
|
|
title: l10n.xdgaDirectoriesTitleDocumentsLocation, |
|
|
|
|
desc: l10n.xdgaDirectoriesDescDocumentsLocation, |
|
|
|
|
value: model.getDocumentsLocation(), |
|
|
|
|
), |
|
|
|
|
BlockItem( |
|
|
|
|
title: l10n.xdgaDirectoriesTitleDownloadLocation, |
|
|
|
|
desc: l10n.xdgaDirectoriesDescDownloadLocation, |
|
|
|
|
value: model.getDownloadLocation(), |
|
|
|
|
), |
|
|
|
|
BlockItem( |
|
|
|
|
title: l10n.xdgaDirectoriesTitleMusicLocation, |
|
|
|
|
desc: l10n.xdgaDirectoriesDescMusicLocation, |
|
|
|
|
value: model.getMusicLocation(), |
|
|
|
|
), |
|
|
|
|
BlockItem( |
|
|
|
|
title: l10n.xdgaDirectoriesTitlePicturesLocation, |
|
|
|
|
desc: l10n.xdgaDirectoriesDescPicturesLocation, |
|
|
|
|
value: model.getPicturesLocation(), |
|
|
|
|
), |
|
|
|
|
BlockItem( |
|
|
|
|
title: l10n.xdgaDirectoriesTitleGenericDataLocation, |
|
|
|
|
desc: l10n.xdgaDirectoriesDescGenericDataLocation, |
|
|
|
|
value: model.getGenericDataLocation(), |
|
|
|
|
), |
|
|
|
|
BlockItem( |
|
|
|
|
title: l10n.xdgaDirectoriesTitleMoviesLocation, |
|
|
|
|
desc: l10n.xdgaDirectoriesDescMoviesLocation, |
|
|
|
|
value: model.getMoviesLocation(), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
child: Padding( |
|
|
|
|
padding: const EdgeInsets.all(20), |
|
|
|
|
child: Column( |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
BlockInfoPackage(widget.package), |
|
|
|
|
BlockAlert(model.error), |
|
|
|
|
if (!model.isError) |
|
|
|
|
Column( |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
BlockItem( |
|
|
|
|
title: l10n.xdgaDirectoriesTitleCacheLocation, |
|
|
|
|
desc: l10n.xdgaDirectoriesDescCacheLocation, |
|
|
|
|
value: model.getCacheLocation(), |
|
|
|
|
), |
|
|
|
|
BlockItem( |
|
|
|
|
title: l10n.xdgaDirectoriesTitleAppDataLocation, |
|
|
|
|
desc: l10n.xdgaDirectoriesDescAppDataLocation, |
|
|
|
|
value: model.getAppDataLocation(), |
|
|
|
|
), |
|
|
|
|
BlockItem( |
|
|
|
|
title: l10n.xdgaDirectoriesTitleDocumentsLocation, |
|
|
|
|
desc: l10n.xdgaDirectoriesDescDocumentsLocation, |
|
|
|
|
value: model.getDocumentsLocation(), |
|
|
|
|
), |
|
|
|
|
BlockItem( |
|
|
|
|
title: l10n.xdgaDirectoriesTitleDownloadLocation, |
|
|
|
|
desc: l10n.xdgaDirectoriesDescDownloadLocation, |
|
|
|
|
value: model.getDownloadLocation(), |
|
|
|
|
), |
|
|
|
|
BlockItem( |
|
|
|
|
title: l10n.xdgaDirectoriesTitleMusicLocation, |
|
|
|
|
desc: l10n.xdgaDirectoriesDescMusicLocation, |
|
|
|
|
value: model.getMusicLocation(), |
|
|
|
|
), |
|
|
|
|
BlockItem( |
|
|
|
|
title: l10n.xdgaDirectoriesTitlePicturesLocation, |
|
|
|
|
desc: l10n.xdgaDirectoriesDescPicturesLocation, |
|
|
|
|
value: model.getPicturesLocation(), |
|
|
|
|
), |
|
|
|
|
BlockItem( |
|
|
|
|
title: l10n.xdgaDirectoriesTitleGenericDataLocation, |
|
|
|
|
desc: l10n.xdgaDirectoriesDescGenericDataLocation, |
|
|
|
|
value: model.getGenericDataLocation(), |
|
|
|
|
), |
|
|
|
|
BlockItem( |
|
|
|
|
title: l10n.xdgaDirectoriesTitleMoviesLocation, |
|
|
|
|
desc: l10n.xdgaDirectoriesDescMoviesLocation, |
|
|
|
|
value: model.getMoviesLocation(), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|