You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
Dart
41 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:hexcolor/hexcolor.dart';
|
|
|
|
class CardWithBgWidgetNew extends StatelessWidget {
|
|
final Widget widget;
|
|
|
|
CardWithBgWidgetNew({required this.widget});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
//margin: EdgeInsets.symmetric(vertical: 10.0),
|
|
margin: EdgeInsets.symmetric(vertical: 10.0),
|
|
width: double.infinity,
|
|
decoration: BoxDecoration(
|
|
borderRadius: BorderRadius.all(
|
|
Radius.circular(10.0),
|
|
),
|
|
),
|
|
child: Material(
|
|
borderRadius: BorderRadius.all(Radius.circular(10.0)),
|
|
color: HexColor('#FFFFFF'),
|
|
child: Stack(
|
|
children: [
|
|
Center(
|
|
child: Container(
|
|
|
|
// padding:EdgeInsets.fromLTRB(0, 10,0, 10), //EdgeInsets.all(10.0),//10
|
|
// margin: EdgeInsets.only(left: 10),
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(8.0),
|
|
child: Center(child: widget),
|
|
)),
|
|
)
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|