flutter_kira 0.1.1+1
flutter_kira: ^0.1.1+1 copied to clipboard

A library that allows Flutter to develop quickly, encapsulating everyday animated widget, and is in the process of updating

flutter_kira #

common widget for project

封装啦一些常用的widget 如:KContainer,KText等,讲一些常用的属性封装出来,快速使用,根据使用情况可以与原生的widget搭配使用

还有一些项目中用到的动画效果做啦下封装,会不断更新,如KCoverWidget, KCContainer

Pub

All Widget #

Example Widget #

KCoverWidgetKCContainer
KFlowButtonKWidgetRun

KContainer #

_Example

KContainer(
                  leftMargin: 10,
                  rightMargin: 10,
                  width: double.infinity,
                  radius: 10,
                  padding: 20,
                  height: 335,
                  background: AssetImage(R.imagesIconResultQusetionBg),
                  child: KText(
                    resultData?.result?.totalLuck ?? "",
                    color: mColors.c_FF444444,
                  ),
                ),

KText #

_Example

  children: [
                    KText(
                      "KText",
                      size: 24,
                      color: mColors.c_FF666666,
                      maxline: 1,
                      fontWeight: FontWeight.bold,
                      fontlist: [24, 22, 20, 18, 16],
                    ),

KCoverWidget #

_Example

 KCoverWidget(
              overHeight: 90,
              downStr: "点击更多详情",
              child: Column(
                //mainAxisAlignment: MainAxisAlignment.start,
                children: [
                  Text(
                    "大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget大家好我是KCoverWidget",
                    // overflow: TextOverflow.visible,
                  ),
                  // Container(height: 120,color: mColors.c_333333,),
                ],
              ),
            ),

KCContainer #

_Example

 KCContainer(
            height: KScreen.realHeight,
            width: KScreen.screenWidth,
            pointController: mpointController,
            offset: Offset(KScreen.screenWidth - 65, KScreen.realHeight - 65),
            child: Container(
              color: mColors.c_516DB3,
              child: Image.asset(R.assetsImagesP4),
            ),
          )
      

KFlowButton #

_Example

KFlowButton(
                  width: 250,
                  height: 50,
                  duration: Duration(milliseconds: 300),
                  flowType: FlowType.horizontal,
                  child: ClipOval(
                    child: KContainer(
                      width: 50,
                      height: 50,
                      color: mColors.c_1B88EE,
                      child: Image.asset(R.assetsImagesP1),
                    ),
                  ),
                  widgets: [
                    ClipOval(
                      child: KContainer(
                        width: 50,
                        height: 50,
                        color: mColors.c_1B88EE,
                        alignment: Alignment.center,
                        child: KText(
                          "1",
                          color: mColors.c_ffffff,
                        ),
                      ),
                    ),
                    ClipOval(
                      child: KContainer(
                        width: 50,
                        height: 50,
                        color: mColors.c_1B88EE,
                        alignment: Alignment.center,
                        child: KText(
                          "2",
                          color: mColors.c_ffffff,
                        ),
                      ),
                    ),
                    ClipOval(
                      child: KContainer(
                        width: 50,
                        height: 50,
                        color: mColors.c_1B88EE,
                        alignment: Alignment.center,
                        child: KText(
                          "3",
                          color: mColors.c_ffffff,
                        ),
                      ),
                    ),
                  ],
                )  

KWidgetRun #

_Example

KWidgetRun(
              direction: Direction.horizontal,
              child: Image.asset(
                R.assetsImagesP3,
                width: 150,
                height: 150,
              ),
            ),
      

Thank you #

If you have any problems, please feel free to contact me: a1215152135@gmail.com

1
likes
100
pub points
43%
popularity

A library that allows Flutter to develop quickly, encapsulating everyday animated widget, and is in the process of updating

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

a1215152135@gmail.com

License

BSD (LICENSE)

Dependencies

auto_size_text, cached_network_image, flutter, fluttertoast

More

Packages that depend on flutter_kira