Answers for "Merge two widgets semantics flutter"

0

Merge two widgets semantics flutter

MergeSemantics(
  child: ListTile(
    title: Text('Lights'),
    trailing: CupertinoSwitch(
      value: _lights,
      onChanged: (bool value) { setState(() { _lights = value; }); },
    ),
    onTap: () { setState(() { _lights = !_lights; }); },
  ),
)
Posted by: Guest on September-17-2021

Browse Popular Code Answers by Language