border_radius.dart 625 B

12345678910111213141516171819202122232425
  1. //import 'package:flutter';
  2. import 'package:flutter/material.dart';
  3. class WrapBorderRadius extends StatelessWidget {
  4. final double width;
  5. final double height;
  6. final double radius;
  7. final Color color;
  8. final DecorationImage img;
  9. WrapBorderRadius(this.radius,{this.width,this.height,this.color,this.img});
  10. @override
  11. Widget build(BuildContext context) {
  12. // TODO: implement build
  13. return Container(
  14. width: width,
  15. height: height,
  16. decoration: BoxDecoration(
  17. borderRadius: BorderRadius.all(Radius.circular(radius)),
  18. image: this.img,
  19. color: color),
  20. );
  21. }
  22. }