2021-04-10 03:04:23 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:selfprivacy/ui/components/brand_radio/brand_radio.dart';
|
|
|
|
import 'package:selfprivacy/ui/components/brand_text/brand_text.dart';
|
|
|
|
|
2022-09-14 15:14:55 +00:00
|
|
|
// TODO: Delete this file
|
|
|
|
|
2021-04-10 03:04:23 +00:00
|
|
|
class BrandRadioTile extends StatelessWidget {
|
|
|
|
const BrandRadioTile({
|
|
|
|
required this.isChecked,
|
|
|
|
required this.text,
|
|
|
|
required this.onPress,
|
2022-06-05 22:40:34 +00:00
|
|
|
final super.key,
|
2022-06-05 19:36:32 +00:00
|
|
|
});
|
2021-04-10 03:04:23 +00:00
|
|
|
|
|
|
|
final bool isChecked;
|
|
|
|
|
|
|
|
final String text;
|
|
|
|
final VoidCallback onPress;
|
|
|
|
|
|
|
|
@override
|
2022-06-05 22:40:34 +00:00
|
|
|
Widget build(final BuildContext context) => GestureDetector(
|
|
|
|
onTap: onPress,
|
|
|
|
behavior: HitTestBehavior.translucent,
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.all(2),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
BrandRadio(
|
|
|
|
isChecked: isChecked,
|
|
|
|
),
|
|
|
|
const SizedBox(width: 9),
|
|
|
|
BrandText.h5(text)
|
|
|
|
],
|
|
|
|
),
|
2021-04-10 03:04:23 +00:00
|
|
|
),
|
2022-06-05 22:40:34 +00:00
|
|
|
);
|
2021-04-10 03:04:23 +00:00
|
|
|
}
|