Last updated:
0 purchases
flutter kira
flutter_kira #
common widget for project
封装啦一些常用的widget 如:KContainer,KText等,讲一些常用的属性封装出来,快速使用,根据使用情况可以与原生的widget搭配使用
还有一些项目中用到的动画效果做啦下封装,会不断更新,如KCoverWidget, KCContainer 等
All Widget #
KContainer
KText
KAutoText
KBoolWeight
KCContainer
KFlowButton
KWidgetRun
KCoverWidget
KImage
KDialog
KScreen
Example Widget #
KCoverWidget
KCContainer
KFlowButton
KWidgetRun
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,
),
),
copied to clipboard
KText #
_Example
children: [
KText(
"KText",
size: 24,
color: mColors.c_FF666666,
maxline: 1,
fontWeight: FontWeight.bold,
fontlist: [24, 22, 20, 18, 16],
),
copied to clipboard
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,),
],
),
),
copied to clipboard
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),
),
)
copied to clipboard
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,
),
),
),
],
)
copied to clipboard
KWidgetRun #
_Example
KWidgetRun(
direction: Direction.horizontal,
child: Image.asset(
R.assetsImagesP3,
width: 150,
height: 150,
),
),
copied to clipboard
Thank you #
If you have any problems, please feel free to contact me: [email protected]
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.