From d086fc1f36762bdc77ff5a6fde8e467c2ae8f04d Mon Sep 17 00:00:00 2001 From: Tibor Bossanyi Date: Mon, 20 Feb 2023 00:28:29 +0100 Subject: [PATCH] v1.0.8 --- README.md | 3 +++ lib/example/lib/main.dart | 4 ++-- lib/model/membership.dart | 2 +- pubspec.yaml | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 46f40ba..4066011 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ Workout Test and Diet 4 You Common Util Functions +Version 1.0.8 + mombership model error fix + Version 1.0.7 openai with model name and temperature diff --git a/lib/example/lib/main.dart b/lib/example/lib/main.dart index d91fbf7..8a969cc 100644 --- a/lib/example/lib/main.dart +++ b/lib/example/lib/main.dart @@ -26,7 +26,7 @@ class _MyAppState extends State { void _fetchData() async { var api = OpenAIApi(); - String response = await api.getOpenAICompletion("Who wrote the song 'yellow submarine'?");; + String response = await api.getOpenAICompletion("Who wrote the song 'yellow submarine'?"); setState(() { _response = response; }); @@ -51,7 +51,7 @@ class _MyAppState extends State { ), Text( _response, - style: Theme.of(context).textTheme.headline4, + style: Theme.of(context).textTheme.headlineMedium, ), Row( mainAxisAlignment: MainAxisAlignment.spaceAround, diff --git a/lib/model/membership.dart b/lib/model/membership.dart index b46f417..9eaeeaa 100644 --- a/lib/model/membership.dart +++ b/lib/model/membership.dart @@ -17,7 +17,7 @@ class Membership { durationUnit = json['durationUnit']; durationType = json['durationType']; trainingPlanId = json['trainingPlanId'] ?? 0; - trainingPlanDayIds = json['trainingPlanDayIds'] ?? 0; + trainingPlanDayIds = json['trainingPlanDayIds'] ?? ""; } Map toJson() => { diff --git a/pubspec.yaml b/pubspec.yaml index 785e1ae..2ad257a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: workouttest_util description: Workout Test app and web functions. -version: 1.0.7 +version: 1.0.8 homepage: environment: