Masking using VwoWrapper

If you want to mask a widget on a screen, use VwoWrapper. Place the widget you want to hide as a child of VwoWrapper.


e.g. hide a text widget

import 'package:vwo_insights_flutter_sdk/vwo_insights_flutter_sdk.dart';
 
VwoWrapper(child: Text("This will be hidden."));

e.g. hide a button

VwoWrapper(
    child: TextButton(
      onPressed: () {},
      child: const Text("Press Me"),
    ),
)

e.g. hide a card containing images and texts

VwoWrapper(
    child: Card(
      child: Column(
        children: [
          Image.asset("assets/house_images/h2.jpg"),
          const Text(StringConstant.SKILLS_TITLE),
          const Text(StringConstant.CHOOSE_CAMPAIGN),
        ],
      ),
    ),
)