mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 18:07:44 +00:00
28 lines
775 B
Dart
28 lines
775 B
Dart
|
import 'dart:ui';
|
||
|
import 'package:flutter/cupertino.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
class RoundedCheckbox extends StatelessWidget {
|
||
|
RoundedCheckbox({Key key, @required this.value}) : super(key: key);
|
||
|
|
||
|
final bool value;
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return value
|
||
|
? Container(
|
||
|
height: 20.0,
|
||
|
width: 20.0,
|
||
|
decoration: BoxDecoration(
|
||
|
borderRadius: BorderRadius.all(Radius.circular(50.0)),
|
||
|
color: Theme.of(context).accentTextTheme.body2.color,
|
||
|
),
|
||
|
child: Icon(
|
||
|
Icons.check,
|
||
|
color: Theme.of(context).backgroundColor,
|
||
|
size: 14.0,
|
||
|
))
|
||
|
: Offstage();
|
||
|
}
|
||
|
}
|