CommonEndLine.dart 567 B

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