CommonEndLine.dart 603 B

123456789101112131415161718192021222324
  1. import 'package:flutter/material.dart';
  2. class CommonEndLine extends StatelessWidget {
  3. @override
  4. Widget build(BuildContext context) {
  5. return new Container(
  6. color: const Color(0xFFEEEEEE),
  7. padding: const EdgeInsets.fromLTRB(5.0, 15.0, 5.0, 15.0),
  8. child: new Row(
  9. children: <Widget>[
  10. new Expanded(
  11. child: new Divider(height: 10.0,),
  12. flex: 1,
  13. ),
  14. new Text("我也是有底线的"),
  15. new Expanded(
  16. child: new Divider(height: 10.0,),
  17. flex: 1,
  18. ),
  19. ],
  20. ),
  21. );
  22. }
  23. }