パッケージ、リポジトリ、アプリカテゴリを検索

GitHub リポジトリNorbert515/flutter_ide

ウィジェットメーカー

Flutter ウィジェット用のビジュアルエディタ

ウィジェットメーカー のプロジェクト画像
スター
1139
フォーク
186
最終プッシュ(UTC)
2022/12/06
プロジェクト状態
公開中

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

The Widget-Maker

title

Buy Me A Coffee

State of the project

The project is currently not maintained by me and the code could probably use a bit of refactoring.

This README is still work in progress.

If anybody is interested in contributing/ forking/ using it as a base for another project - feel free!

Features

  • Templates
  • Different Canvas sizes
  • Build and "Play" (interact with UI) mode
  • Multiple Canvases and instantiation
  • Code Generation

title title

Building

This is intended to be run using Flutter Desktop or Flutter web. For Desktop, simply switch to the master channel and run:

flutter run -d [windows|linux|macos]

The concept

A few words about the code architecture.

Widget-Elements

Widget-Elements play a central part in the Widget-Maker as these are actual widgets you drag around and style. The Widget-Elements can be found under lib/data/widget_elements.

Widget-Elements form a forth tree (on top of Widgets/RenderObjects and Elements) they include a lot of meta information. Widget-Elements only manage the tree, but not the actual rendering, interaction and modification of the widgets, that is up to the widget which is generated by the generateWidget() method. Those widgets have to mix in ElementWidgetStateMixin, that class contains code which handles common UX scenarios like accepting children via drag, or showing a border on selection.

Making new Widget-Elements

You certainly can make new Widget-Elements by hand, in fact Widget-Elements such as the Scaffold, Row and more are hand made.

But a lot of widgets are pretty basic, so instead of copy-pasting the same wrapper code over and over again, there is a generator which does that for you.

Take a look at (lib/Data/widget_elements/config.yaml and README.md) to get a sense of the schema.

To generated those widget simply execute the lib/data/widget_elements/scripts/build.dart file. Be sure to be inside the script folder when running that script because it relies on relative paths!

dart build.dart
Properties

The MProperty is the base class for all properties inside the Widget-Maker. Each Widget-Element has a list of properties. These properties reflect the constructor parameters of the widgets in code. Properties are responsible for providing a way of changing themselves and providing meta information.

For more information take a look at lib/data/properties/basic_properties.dart

Running the test

Not all tests seem to pass as of now.

flutter test

Website

The docs folder contains the source for www.widgetmaker.dev

Donations

Feel free to donate a pizza/ coffee :)

Norbert Kozsir GitHub avatar
GitHub 作者

Norbert Kozsir ↗

Mostly Flutter these days. Love to explore new technologies though.

FlutterFlowKarlsruhe, Germany公式サイト ↗
言語DartC++CMakefileBatchfileSwiftObjective-CHTML

依存する Flutter コンポーネント

使用している依存関係

依存関係一覧 17 件

  • flutter{"sdk":"flutter"}
  • uuid^2.0.1
  • provider^2.0.1
  • flutter_colorpickerany
  • code_builder^3.2.0
  • dart_style^1.2.8
  • rxdartany
  • file_system_explorer{"git":{"url":"https://github.com/Norbert515/file_system_explorer.git"}}
  • flutter_desktop_widgets2{"git":{"url":"https://github.com/Norbert515/flutter_desktop_widgets2.git"}}
  • flutter_highlight^0.6.0
  • usage3.4.1
  • flutter_hooks^0.7.0
  • mustache{"git":{"url":"https://github.com/Norbert515/mustache.git"}}
  • cupertino_icons^0.1.2
  • flutter_test開発用{"sdk":"flutter"}
  • flutter_driver開発用{"sdk":"flutter"}
  • test開発用any

アプリカテゴリー

ランキング

プロジェクトに合うリポジトリを選ぶには?

用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。

  1. 名前・作者・説明で検索し、技術トピックで絞り込みます。
  2. スター、フォーク、最近のプッシュを比較します。スターは関心の目安であり、品質の保証ではありません。
  3. 利用前に GitHub で README、ライセンス、Issues を確認します。

情報源と管理

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗