selfprivacy.org.app/lib/ui/components/brand_radio_tile/brand_radio_tile.dart

36 lines
906 B
Dart
Raw Normal View History

2021-04-10 06:04:23 +03: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';
class BrandRadioTile extends StatelessWidget {
const BrandRadioTile({
required this.isChecked,
required this.text,
required this.onPress,
final super.key,
2022-06-05 22:36:32 +03:00
});
2021-04-10 06:04:23 +03:00
final bool isChecked;
final String text;
final VoidCallback onPress;
@override
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 06:04:23 +03:00
),
);
2021-04-10 06:04:23 +03:00
}