适用于React的Github-Action配置文件
最近想给react配置一个自动构建,在网上查(chao)阅(xi)了许多资料,作为一个缝合怪,终于是把yml文件配置好了 12345678910111213141516171819202122232425262728293031323334353637# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejsname: Node.js CIon: push: branches: [ "master" ] pull_request: branches: [...
Flutter局部跳转
flutter局部跳转的思路其实很简单,只需要在一个控件外创建一个根路由,仿照安卓的命名,我给这个路由起名叫Fragment 123456789101112131415161718class Fragment extends StatelessWidget { final Widget child; final String root; const Fragment({required this.child, this.root = "/", super.key}); @override Widget build(BuildContext context) { return Navigator( initialRoute: root, onGenerateRoute: (RouteSettings settings) { WidgetBuilder builder; builder = (context) => child; ...