chore: config plugin display

This commit is contained in:
appflowy 2022-03-07 20:51:13 +08:00
parent 733b6f7176
commit 0502eec717
4 changed files with 4 additions and 5 deletions

View File

@ -168,7 +168,7 @@ class HomeStackManager {
index: getIt<PluginSandbox>().indexOf(notifier.plugin.ty),
children: getIt<PluginSandbox>().supportPluginTypes.map((pluginType) {
if (pluginType == notifier.plugin.ty) {
return notifier.plugin.display.buildWidget();
return notifier.plugin.display.buildWidget().padding(horizontal: 40, vertical: 28);
} else {
return const BlankPage();
}

View File

@ -10,7 +10,6 @@ import 'package:flowy_sdk/protobuf/flowy-folder-data-model/view.pb.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:provider/provider.dart';
import 'package:styled_widget/styled_widget.dart';
import 'styles.dart';
import 'widget/banner.dart';
@ -82,7 +81,7 @@ class _DocumentPageState extends State<DocumentPage> {
_renderToolbar(controller),
const VSpace(10),
],
).padding(horizontal: 40, top: 28),
),
),
],
);

View File

@ -28,7 +28,7 @@ class GridPluginBuilder implements PluginBuilder {
class GridPluginConfig implements PluginConfig {
@override
bool get creatable => false;
bool get creatable => true;
}
class GridPlugin extends Plugin {

View File

@ -10,7 +10,7 @@ class GridSize {
static double get scrollBarSize => 12 * 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 firstHeaderPadding => 20 * scale;
}