You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
512 B
23 lines
512 B
import 'package:flutter/material.dart';
|
|
|
|
import 'cart_button.dart';
|
|
|
|
class CartButtonOverlay extends StatelessWidget {
|
|
final Widget child;
|
|
const CartButtonOverlay({Key? key, required this.child}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Stack(
|
|
children: [
|
|
Positioned.fill(child: child),
|
|
const Positioned(
|
|
left: 8,
|
|
bottom: 8,
|
|
right: 8,
|
|
child: SafeArea(child: CartButton()),
|
|
)
|
|
],
|
|
);
|
|
}
|
|
}
|
|
|