Merge branch 'version-1.0.6' of https://bitbucket.org/FransoletThomas/mymuseum-visitapp into version-1.0.6

This commit is contained in:
Thomas Fransolet 2023-04-20 15:53:15 +02:00
commit af954f8a6c
5 changed files with 14 additions and 4 deletions

View File

@ -285,6 +285,16 @@ class _ArticlePageState extends State<ArticlePage> {
SectionDTO? sectionOnline = await client.sectionApi!.sectionGetDetail(articleId); SectionDTO? sectionOnline = await client.sectionApi!.sectionGetDetail(articleId);
if(sectionOnline != null) { if(sectionOnline != null) {
sectionDTO = sectionOnline; sectionDTO = sectionOnline;
try {
SectionRead articleRead = SectionRead(id: sectionDTO!.id!, readTime: DateTime.now().millisecondsSinceEpoch);
await DatabaseHelper.instance.insert(DatabaseTableType.articleRead, articleRead.toMap());
visitAppContext!.readSections.add(articleRead);
appContext.setContext(visitAppContext!);
} catch (e) {
print("DATABASE ERROR ARTICLEREAD");
print(e);
}
} else { } else {
print("EMPTY SECTION"); print("EMPTY SECTION");
} }

View File

@ -55,7 +55,7 @@ class _BeaconArticleFoundState extends State<BeaconArticleFound> {
mainAxisAlignment: MainAxisAlignment.spaceAround, mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
if(snapshot.data != null) if(snapshot.data != null && ((visitAppContext!.configuration!.isOffline! && snapshot.data!.data != null) || (visitAppContext!.configuration!.isOffline! && snapshot.data!.source != null)))
SizedBox( SizedBox(
height: size.height * 0.25, height: size.height * 0.25,
width: size.width * 0.75, width: size.width * 0.75,
@ -95,7 +95,7 @@ class _BeaconArticleFoundState extends State<BeaconArticleFound> {
Align( Align(
alignment: Alignment.center, alignment: Alignment.center,
child: Text( child: Text(
TranslationHelper.get(sectionFound!.title, appContext.getContext()), style: TextStyle(fontSize: kMenuTitleDetailSize), textAlign: TextAlign.center, TranslationHelper.get(sectionFound!.title, appContext.getContext()), style: const TextStyle(fontSize: kMenuTitleDetailSize), textAlign: TextAlign.center,
), ),
), ),
/*Row( /*Row(

View File

@ -906,5 +906,5 @@ packages:
source: hosted source: hosted
version: "3.1.1" version: "3.1.1"
sdks: sdks:
dart: ">=2.19.0 <4.0.0" dart: ">=2.19.0 <3.0.0"
flutter: ">=3.3.0" flutter: ">=3.3.0"

View File

@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at # Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.6+14 version: 1.0.7+15
environment: environment:
sdk: ">=2.16.2 <3.0.0" sdk: ">=2.16.2 <3.0.0"

Binary file not shown.