-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #337 from mirea-ninja/release/v1.3.5
Release/v1.3.5
- Loading branch information
Showing
30 changed files
with
300 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,36 @@ | ||
# This file tracks properties of this Flutter project. | ||
# Used by Flutter tool to assess capabilities and perform upgrades etc. | ||
# | ||
# This file should be version controlled and should not be manually edited. | ||
# This file should be version controlled. | ||
|
||
version: | ||
revision: adc687823a831bbebe28bdccfac1a628ca621513 | ||
revision: 84a1e904f44f9b0e9c4510138010edcc653163f8 | ||
channel: stable | ||
|
||
project_type: app | ||
|
||
# Tracks metadata for the flutter migrate command | ||
migration: | ||
platforms: | ||
- platform: root | ||
create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8 | ||
base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8 | ||
- platform: linux | ||
create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8 | ||
base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8 | ||
- platform: macos | ||
create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8 | ||
base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8 | ||
- platform: windows | ||
create_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8 | ||
base_revision: 84a1e904f44f9b0e9c4510138010edcc653163f8 | ||
|
||
# User provided section | ||
|
||
# List of Local paths (relative to this file) that should be | ||
# ignored by the migrate tool. | ||
# | ||
# Files that are not part of the templates will be ignored by default. | ||
unmanaged_files: | ||
- 'lib/main.dart' | ||
- 'ios/Runner.xcodeproj/project.pbxproj' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"java.configuration.updateBuildConfiguration": "interactive" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Fri Jun 23 08:50:38 CEST 2017 | ||
#Sat Feb 18 16:22:23 MSK 2023 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip | ||
zipStoreBase=GRADLE_USER_HOME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,33 @@ | ||
import 'package:intl/intl.dart'; | ||
import 'package:rtu_mirea_app/domain/entities/news_item.dart'; | ||
|
||
import 'strapi_media_model.dart'; | ||
|
||
class NewsItemModel extends NewsItem { | ||
const NewsItemModel({ | ||
required title, | ||
required text, | ||
required date, | ||
required images, | ||
required tags, | ||
required isImportant, | ||
}) : super( | ||
title: title, | ||
text: text, | ||
date: date, | ||
images: images, | ||
tags: tags, | ||
isImportant: isImportant, | ||
); | ||
|
||
factory NewsItemModel.fromJson(Map<String, dynamic> json) { | ||
return NewsItemModel( | ||
title: json['title'], | ||
text: json['text'], | ||
date: DateTime.parse(json['date']), | ||
images: List<StrapiMediaModel>.from(json["images"]["data"] | ||
.map((x) => StrapiMediaModel.fromJson(x["attributes"]))), | ||
title: json['NAME'], | ||
text: json['DETAIL_TEXT'], | ||
date: DateFormat("dd.MM.yyyy").parse(json['DATE_ACTIVE_FROM']), | ||
images: List<String>.from(json['PROPERTY_MY_GALLERY_VALUE'] ?? []) | ||
..add(json['DETAIL_PICTURE']), | ||
tags: List<String>.from( | ||
json["tags"]["data"].map((x) => x["attributes"]['name'])), | ||
isImportant: json['isImportant'], | ||
json['TAGS'].toString().split(',').map((x) => x.trim())), | ||
); | ||
} | ||
|
||
@override | ||
List<Object?> get props => [title, text, date, images, tags, isImportant]; | ||
List<Object?> get props => [title, text, date, images, tags]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
import 'package:equatable/equatable.dart'; | ||
import 'package:rtu_mirea_app/domain/entities/strapi_media.dart'; | ||
|
||
class NewsItem extends Equatable { | ||
final String title; | ||
final String text; | ||
final DateTime date; | ||
final List<StrapiMedia> images; | ||
final List<String> images; | ||
final List<String> tags; | ||
final bool isImportant; | ||
|
||
const NewsItem({ | ||
required this.title, | ||
required this.text, | ||
required this.date, | ||
required this.images, | ||
required this.tags, | ||
required this.isImportant, | ||
}); | ||
|
||
@override | ||
List<Object?> get props => [title, text, date, images, tags, isImportant]; | ||
List<Object?> get props => [title, text, date, images, tags]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.