Giter Club home page Giter Club logo

you's People

Contributors

chen56 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

you's Issues

hot reload 适配/Hot reload adaptation

dart/flutter的热重载技术非常妙,但之前没有关注过此方面,导致页面复杂后,每次dev模式改代码hot reload时,页面都会重新加载到首页,然后手工切换到修改位置,这是对hot reload的浪费啊。

The hot reload technology of Dart/Flutter is very impressive, but I haven't paid attention to this aspect before, which leads to the complexity of dev . Every time I change the code to hot reload in dev mode, the page will be reloaded to the homepage and manually switched to the modified position, which is a waste of hot reload.

Param 值类型为Function的处理

Closure: (bool?) => void
Closure: (OtherType) => void
有没有个好招,可以方便通吃的,函数参数的类型变化太大了,如何正确处理?

need notebook develoment mode to read block code in page

Notebook dev mode like jupyter/observablehq

Notebook 开发模型原型,类似于jupyter/observablehq,但不是web编辑,而是ide+纯代码。
Notebook development model prototype, similar to jupyter/observablehq, but not web editing: idea/code + pure code.

需要从页面中提取源代码信息,并分割为一段的注释片段,形成代码 - 展示 - 代码- 展示这样的形式。
It is necessary to extract the source code information from the page and divide it into a note segment to format:
code
->display

code
->display

navigator 范例

主要探索navigator v2的用法

  • 参数传递 及返回值
  • 层级navigator? 页面内的一组小流程如何做?类似注册步骤?https://flutter.cn/docs/cookbook/effects/nested-nav 的案例 嵌套混乱 、 pop混乱
  • 类似微信回退到以前某页
  • 可分享给朋友打开的页面就是独立页面,否则是不独立页面比如多步骤向导页中的某一步 需单独处理
  • navatitor v2 的浏览器后退按钮控制的有点问题,需再琢磨下,是不是可以用时间戳或id控制浏览器后退按钮的鉴别
  • navatitor 如何配合state 恢复表单,防止没保存

Can we delete the suffix $Mate for the Mate class?

current naming : Container --> Container$Mate
which makes it more complicated to use.

Can you just use the original name? if we do,There is a problem :

Page will depend on Mate package and original package:

import 'package:flutter/material.dart' as flutter;
import 'package:note_mate_flutter/material.dart';

How to avoid name conflicts?
Can we only reference one mate package to use all related classes?

DefaultValueParamEditor的代码生成逻辑是不是有问题?

1.当前:不识别的Value会被生成为字符串:code.literalString("${param.value}"); 比如set: xxxSet: '{1,2,3}'
2.是不是应该直接生成:code.refer("${param.value}"); 比如set: xxxSet: {1,2,3}
如果是2, 会不会更好些,如果代码生成有问题,提前可以把错误报出来,而不是隐藏在无法copy run的字符串里

EPIC-参数化Sample:原型

Sample 的组件是否能做到拖拉替换?

,比如
Container

  • Center
    • Text
      通过拖拉组件,可以快速换成
      Container
  • Container
    • Text

如果能做到的话,配合可调参数的属性,可以非常快的进行布局测试。

参数化属性

Sample中的组件,比如Container,可以点点就能改变其基本属性:宽、高等

配合以上功能的代码生成

修改发布流程workflow,main分支->/main , prod分支->/prod

当前希望简单点:
main分支->直接部署

以后代码稳定了,可以复杂点,main分支和生产分支分开部署
main分支->/main main分支内部review使用
prod分支->/prod 正式生产发布

备注:github pages不支持增量发布,所以每次构建需要一次性弄好一起发pages

需要一次重构和代码整理

Rule -> Navigable?
N -> Page?
因为Page这个单词被flutter占用了,且无法汇入本项目的NavigatorV2实现里,造成命名的混乱,需要重新想一下
markdown outline的设计也够糟糕的,得简化下

Pen api重构

cell应该使用分割线的模式将api 收缩为一种,而不是现在的多种

feature: notebook开发模式的代码动态提取

现象:比如写几行notebook后,界面上展示的code就会和实际code错位。
原因:目前基于代码生成的notebook cell 源代码展示,在开发时无法热更新
解决方案:提供动态分析功能,在文件变化后实时更新,只需要存在于dev模式即可

目前已测试过analyzer包可以在flutter macos环境下运转。可以试试

Param和Editor是否能合并?

Editor的存在貌似就是为了UI算法的扩展,那如果当需要扩展时提供Editor算法替换接口,是不是就ok了,并不需要现在就分离,搞成两颗类似的继承树:
ObjectParam -> ObjectEditor
ListParam -> ListEditor

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.