itools 0.0.3 copy "itools: ^0.0.3" to clipboard
itools: ^0.0.3 copied to clipboard

outdated

A collection of commonly used widgets.

Collect common components just for personal use

Features #

1.log.dart is a commonly used log printing assistant; 2.screen_size.dart is used to help adapt different screens

Usage #

class CFHomePage extends StatelessWidget {
  const CFHomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    ///1、初始化:(可以传入以哪个屏幕尺寸为基础适配)
    ///--> Screen.initialize(standardSize: 750);
    ///--> 不传默认750
    ///只需要先在此处初始化就可以放心使用
    Screen.initialize();
    return Scaffold(
      appBar: AppBar(
        title: const Text("Page Test"),
      ),
      body: SizedBox(
        ///2、无论int或者double都可以在后面加.px或者.rpx,
        ///--> 其中rpx默认以750屏幕为基准
        height: 80.px,
        child: const Text('Hello World'),
      ),
    );
  }
}
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A collection of commonly used widgets.

Homepage

License

unknown (LICENSE)

Dependencies

flutter, stack_trace

More

Packages that depend on itools