TF-1665 Enable app grid on mobile

(cherry picked from commit c9f9a2c214316606c8d3f9d63cf38c326369b112)
This commit is contained in:
dab246
2023-04-11 14:21:42 +07:00
committed by Dat Vu
parent 3f5fa41c75
commit 3eb1e20b5b
21 changed files with 383 additions and 308 deletions
@@ -3,7 +3,7 @@ import 'package:json_annotation/json_annotation.dart';
part 'linagora_app.g.dart';
@JsonSerializable()
@JsonSerializable(explicitToJson: true, includeIfNull: false)
class LinagoraApp with EquatableMixin{
@JsonKey(name: 'appName')
final String appName;
@@ -14,12 +14,32 @@ class LinagoraApp with EquatableMixin{
@JsonKey(name: 'appLink')
final Uri appUri;
LinagoraApp(this.appName, this.iconName, this.appUri);
final String? androidPackageId;
final String? iosUrlScheme;
final String? iosAppStoreLink;
LinagoraApp(
this.appName,
this.iconName,
this.appUri,
{
this.androidPackageId,
this.iosUrlScheme,
this.iosAppStoreLink
}
);
factory LinagoraApp.fromJson(Map<String, dynamic> json) => _$LinagoraAppFromJson(json);
Map<String, dynamic> toJson() => _$LinagoraAppToJson(this);
@override
List<Object?> get props => [appName, iconName, appUri];
List<Object?> get props => [
appName,
iconName,
appUri,
androidPackageId,
iosUrlScheme,
iosAppStoreLink
];
}