基础组件库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 lines
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. }