Creating New Layers
1. Creating A Layer Widget
class CustomMobileLayer extends StatelessWidget {
const CustomMobileLayer({super.key});
@override
Widget build(BuildContext context) {
return MobileLayerTransformer(
child: // your child here
);
}
}class CustomStaticLayer extends StatelessWidget {
const CustomStaticLayer({super.key});
@override
Widget build(BuildContext context) {
return SizedBox.expand();
// and/or
return Align();
}
}2. Hooking Into Inherited State
Was this helpful?