line.dart 697 B

1234567891011121314151617181920212223242526
  1. import 'package:flutter/material.dart';
  2. class Line extends StatelessWidget {
  3. @override
  4. Widget build(BuildContext context) {
  5. return Padding(
  6. padding: const EdgeInsets.fromLTRB(10, 10, 10, 10),
  7. child: Container(
  8. width: double.infinity,
  9. height: 1.0,
  10. padding: const EdgeInsets.all(50),
  11. decoration: BoxDecoration(
  12. gradient: LinearGradient(
  13. colors: [Colors.black, Colors.white],
  14. begin: Alignment.center,
  15. end: Alignment.centerRight,
  16. tileMode: TileMode.mirror,
  17. ),
  18. ),
  19. child: Image(
  20. image: AssetImage('assets/images/line.png'),
  21. ),
  22. ),
  23. );
  24. }
  25. }