mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: config plugin display
This commit is contained in:
parent
733b6f7176
commit
0502eec717
@ -168,7 +168,7 @@ class HomeStackManager {
|
|||||||
index: getIt<PluginSandbox>().indexOf(notifier.plugin.ty),
|
index: getIt<PluginSandbox>().indexOf(notifier.plugin.ty),
|
||||||
children: getIt<PluginSandbox>().supportPluginTypes.map((pluginType) {
|
children: getIt<PluginSandbox>().supportPluginTypes.map((pluginType) {
|
||||||
if (pluginType == notifier.plugin.ty) {
|
if (pluginType == notifier.plugin.ty) {
|
||||||
return notifier.plugin.display.buildWidget();
|
return notifier.plugin.display.buildWidget().padding(horizontal: 40, vertical: 28);
|
||||||
} else {
|
} else {
|
||||||
return const BlankPage();
|
return const BlankPage();
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,6 @@ import 'package:flowy_sdk/protobuf/flowy-folder-data-model/view.pb.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:styled_widget/styled_widget.dart';
|
|
||||||
import 'styles.dart';
|
import 'styles.dart';
|
||||||
import 'widget/banner.dart';
|
import 'widget/banner.dart';
|
||||||
|
|
||||||
@ -82,7 +81,7 @@ class _DocumentPageState extends State<DocumentPage> {
|
|||||||
_renderToolbar(controller),
|
_renderToolbar(controller),
|
||||||
const VSpace(10),
|
const VSpace(10),
|
||||||
],
|
],
|
||||||
).padding(horizontal: 40, top: 28),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
@ -28,7 +28,7 @@ class GridPluginBuilder implements PluginBuilder {
|
|||||||
|
|
||||||
class GridPluginConfig implements PluginConfig {
|
class GridPluginConfig implements PluginConfig {
|
||||||
@override
|
@override
|
||||||
bool get creatable => false;
|
bool get creatable => true;
|
||||||
}
|
}
|
||||||
|
|
||||||
class GridPlugin extends Plugin {
|
class GridPlugin extends Plugin {
|
||||||
|
@ -10,7 +10,7 @@ class GridSize {
|
|||||||
|
|
||||||
static double get scrollBarSize => 12 * scale;
|
static double get scrollBarSize => 12 * scale;
|
||||||
static double get headerHeight => 50 * scale;
|
static double get headerHeight => 50 * scale;
|
||||||
static double get rowHeight => 50 * scale;
|
static double get rowHeight => 36 * scale;
|
||||||
static double get footerHeight => 40 * scale;
|
static double get footerHeight => 40 * scale;
|
||||||
static double get firstHeaderPadding => 20 * scale;
|
static double get firstHeaderPadding => 20 * scale;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user