Jonny Borges

Merge branch 'master' of https://github.com/jonataslaw/getx into sm-refactor

... ... @@ -192,7 +192,7 @@ extension ExtensionDialog on GetInterface {
color: buttonColor ?? theme.colorScheme.secondary,
width: 2,
style: BorderStyle.solid),
borderRadius: BorderRadius.circular(100)),
borderRadius: BorderRadius.circular(radius)),
),
onPressed: () {
onCancel?.call();
... ... @@ -215,7 +215,7 @@ extension ExtensionDialog on GetInterface {
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
backgroundColor: buttonColor ?? theme.colorScheme.secondary,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(100)),
borderRadius: BorderRadius.circular(radius)),
),
child: Text(
textConfirm ?? "Ok",
... ...
... ... @@ -34,10 +34,12 @@ class RxSet<E> extends GetListenable<Set<E>>
}
@override
bool add(E newValue) {
final val = value.add(newValue);
bool add(E value) {
final hasAdded = value.add(value);
if (hasAdded) {
refresh();
return val;
}
return hasAdded;
}
@override
... ...