Skip to content

Commit f9e2c33

Browse files
author
chendoxiu
committed
# Changelog
## 0.6.1 ### Fixed - Fix Note loading issue
1 parent 65c2eab commit f9e2c33

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.6.1
4+
5+
### Fixed
6+
7+
- Fix Note loading issue
8+
39
## 0.6.0
410

511
### Feature

lib/pages/notes/note_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class NotesPage extends HookConsumerWidget {
4646
var loadConversationSnapshot = useFuture(loadConversation.value);
4747
var conversation = dataProvider.valueOrNull?.conversation ?? [];
4848
var data = dataProvider.valueOrNull?.data ?? previewNote;
49-
49+
data?.noteTranslate ??= previewNote?.noteTranslate;
5050
return LayoutBuilder(
5151
builder: (context, constraints) {
5252
double padding = getPaddingForNote(constraints);

lib/router/router.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import 'package:moekey/status/mk_tabbar_refresh_scroll_state.dart';
1111
import 'package:moekey/status/user.dart';
1212
import 'package:riverpod_annotation/riverpod_annotation.dart';
1313

14+
import '../apis/models/note.dart';
1415
import '../pages/announcements/announcements.dart';
1516
import '../pages/clips/clips_notes.dart';
1617
import '../pages/clips/clips_page.dart';
@@ -128,6 +129,7 @@ GoRouter router(Ref ref) {
128129
path: "/notes/:id",
129130
builder: (_, status) => NotesPage(
130131
noteId: status.pathParameters['id']!,
132+
previewNote: status.extra as NoteModel?,
131133
),
132134
),
133135
GoRoute(

lib/widgets/notes/note_card.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class TimeLineNoteCardComponent extends HookConsumerWidget {
210210
cursor: SystemMouseCursors.click,
211211
child: GestureDetector(
212212
onTap: () {
213-
context.push('/notes/${data.id}');
213+
context.push('/notes/${data.id}', extra: data);
214214
// main_router.MainRouterDelegate.of(context)
215215
// .setNewRoutePath(main_router.RouterItem(
216216
// path: "notes/${data.id}",

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1616
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1717
# In Windows, build-name is used as the major, minor, and patch parts
1818
# of the product and file versions while build-number is used as the build suffix.
19-
version: 0.6.0+41
19+
version: 0.6.1+42
2020

2121
environment:
2222
sdk: '>=3.5.0 <4.0.0'

0 commit comments

Comments
 (0)