RotaModal constructor
RotaModal(
- String name, {
- required ModularChild child,
Implementation
RotaModal(String name, {required ModularChild child})
: super(name,
child: child,
transition: TransitionType.custom,
customTransition: CustomTransition(
opaque: false,
transitionBuilder: (p0, p1, p2, p3) {
const begin = Offset(0.0, 1.0);
const end = Offset.zero;
const curve = Curves.ease;
var tween = Tween(begin: begin, end: end)
.chain(CurveTween(curve: curve));
return SlideTransition(
position: p1.drive(tween),
child: Row(
children: [
Expanded(
child: Container(
color: Colors.black.withValues(alpha: 0.5),
child: Center(
child: p3,
),
),
)
],
),
);
},
));