GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - elementlo/flutter-steps: Fresh experience and practical skills when I developing with Flutter, such as states of a Widget, using key to sync states between Widgets, and etc.

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
android
android
 
 
aspectd_impl
aspectd_impl
 
 
ios
ios
 
 
lib
lib
 
 
test
test
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build.yaml
build.yaml
 
 
pubspec.yaml
pubspec.yaml
 
 
绿色教学说课.pptx
绿色教学说课.pptx
 
 

Repository files navigation

Flutter Steps

写Flutter过程中的知识点, 技巧记录

Involved

    1. 不同Widget生命周期探索;
    1. 使用Key同步Widget间的状态;
    1. 初步使用注解生成Dart代码 Dart的APT比Java要弱一些, 但是更灵活, 甚至可以拦截没有注解的类和方法. 具体见builder.dart, 使用/flutter packages pub run build_runner build/生成目标代码

另外生成模板代码有很多可行方法: (1) 拼接字符串; (2) 使用Dart的 ; (3) 使用Dart预置的Mustach; (4) 使用package code_builder

    1. Android Hybrid Composition模式体验 在Android Hybrid Composition页面, 使用混合方案显示了一个原生的Textview, 打开安卓的视图边界功能可以看到原生View 的边界被正确的绘制出来了, 而且用Flutter写的Text Widget也能正常显示在原生View上方, 并且也能被正常绘制边界, 但是离开 原神view的区域, Flutter的Widget边界就不能被绘制出来了, 这是因为当Flutter Widget与原生View有重叠时, Flutter Widget 也会通过合成方案用FlutterImageView来绘制, 并且如果多个Widget被显示在同一个原生View区域上时, 他们会共享同一个 FlutterImageview. 具体可以细细在Demo中体验.
    1. 分支aspectd集成了AOP框架aspectd, 兼容flutter 1.22.5.

About

Fresh experience and practical skills when I developing with Flutter, such as states of a Widget, using key to sync states between Widgets, and etc.

Topics

flutterglobalkeystatefulwidget

Resources

Readme
Activity

Stars

3 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.