feat(example): clean up for android
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class IOSRoleSelector extends StatelessWidget {
|
||||
const IOSRoleSelector({
|
||||
super.key,
|
||||
required this.isIosBrowser,
|
||||
required this.onSelect,
|
||||
});
|
||||
|
||||
final bool isIosBrowser;
|
||||
final ValueChanged<bool> onSelect;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Center(
|
||||
child: Text(
|
||||
'You are ${isIosBrowser ? 'Browser' : 'Advertiser'}',
|
||||
),
|
||||
),
|
||||
Switch(
|
||||
value: isIosBrowser,
|
||||
onChanged: onSelect,
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user