mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: unable to sync the folder data (#4141)
This commit is contained in:
parent
6cece56ca7
commit
d26606d3d3
@ -45,7 +45,7 @@ class MobilePersonalFolder extends StatelessWidget {
|
|||||||
...views.map(
|
...views.map(
|
||||||
(view) => MobileViewItem(
|
(view) => MobileViewItem(
|
||||||
key: ValueKey(
|
key: ValueKey(
|
||||||
'${FolderCategoryType.personal.name} ${view.id}',
|
'${FolderCategoryType.personal.name} ${view.hashCode} ',
|
||||||
),
|
),
|
||||||
isDraggable: true,
|
isDraggable: true,
|
||||||
categoryType: FolderCategoryType.personal,
|
categoryType: FolderCategoryType.personal,
|
||||||
|
@ -163,7 +163,7 @@ class InnerMobileViewItem extends StatelessWidget {
|
|||||||
if (childViews.isNotEmpty) {
|
if (childViews.isNotEmpty) {
|
||||||
final children = childViews.map((childView) {
|
final children = childViews.map((childView) {
|
||||||
return MobileViewItem(
|
return MobileViewItem(
|
||||||
key: ValueKey('${categoryType.name} ${childView.id}'),
|
key: ValueKey('${categoryType.name} ${childView.hashCode}'),
|
||||||
parentView: view,
|
parentView: view,
|
||||||
categoryType: categoryType,
|
categoryType: categoryType,
|
||||||
isFirstChild: childView.id == childViews.first.id,
|
isFirstChild: childView.id == childViews.first.id,
|
||||||
@ -343,7 +343,7 @@ class _SingleMobileInnerViewItemState extends State<SingleMobileInnerViewItem> {
|
|||||||
if (widget.startActionPane != null || widget.endActionPane != null) {
|
if (widget.startActionPane != null || widget.endActionPane != null) {
|
||||||
child = Slidable(
|
child = Slidable(
|
||||||
// Specify a key if the Slidable is dismissible.
|
// Specify a key if the Slidable is dismissible.
|
||||||
key: ValueKey(widget.view.id),
|
key: ValueKey(widget.view.hashCode),
|
||||||
startActionPane: widget.startActionPane?.call(context),
|
startActionPane: widget.startActionPane?.call(context),
|
||||||
endActionPane: widget.endActionPane?.call(context),
|
endActionPane: widget.endActionPane?.call(context),
|
||||||
child: child,
|
child: child,
|
||||||
|
@ -98,7 +98,7 @@ class SplashScreen extends StatelessWidget {
|
|||||||
'_handleUnauthenticated -> cloud is enabled: $isAuthEnabled',
|
'_handleUnauthenticated -> cloud is enabled: $isAuthEnabled',
|
||||||
);
|
);
|
||||||
// replace Splash screen as root page
|
// replace Splash screen as root page
|
||||||
if (isAuthEnabled) {
|
if (isAuthEnabled || PlatformExtension.isMobile) {
|
||||||
context.go(SignInScreen.routeName);
|
context.go(SignInScreen.routeName);
|
||||||
} else {
|
} else {
|
||||||
// if the env is not configured, we will skip to the 'skip login screen'.
|
// if the env is not configured, we will skip to the 'skip login screen'.
|
||||||
|
Loading…
Reference in New Issue
Block a user