基础组件库
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

27 行
712 B

  1. import 'package:flutter/material.dart';
  2. class EmptyWidget extends StatelessWidget {
  3. final String tips;
  4. const EmptyWidget({Key key, this.tips = '暂无数据~'}) : super(key: key);
  5. @override
  6. Widget build(BuildContext context) {
  7. return Column(
  8. crossAxisAlignment: CrossAxisAlignment.center,
  9. mainAxisAlignment: MainAxisAlignment.center,
  10. children: <Widget>[
  11. Image.asset(
  12. 'assets/images/empty/empty.png',
  13. package: 'zhiying_base_widget',
  14. ),
  15. Padding(padding: const EdgeInsets.all(16.0),
  16. child: Text(tips, style: TextStyle(
  17. fontSize: 15,
  18. color: Color(0xff999999),
  19. ))),
  20. ],
  21. );
  22. }
  23. }