Vaibhav_Enhancement-#419 #35
@ -123,7 +123,17 @@ class _LoginScreenState extends State<LoginScreen> with UIMixin {
|
|||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(4),
|
borderRadius: BorderRadius.circular(4),
|
||||||
),
|
),
|
||||||
fillColor: WidgetStatePropertyAll(contentTheme.secondary),
|
fillColor: MaterialStateProperty
|
||||||
|
.resolveWith<Color>(
|
||||||
|
(Set<WidgetState> states) {
|
||||||
|
if (states
|
||||||
|
.contains(WidgetState.selected)) {
|
||||||
|
return Colors.blueAccent;
|
||||||
|
}
|
||||||
|
return Colors
|
||||||
|
.white;
|
||||||
|
},
|
||||||
|
),
|
||||||
checkColor: contentTheme.onPrimary,
|
checkColor: contentTheme.onPrimary,
|
||||||
visualDensity: getCompactDensity,
|
visualDensity: getCompactDensity,
|
||||||
materialTapTargetSize:
|
materialTapTargetSize:
|
||||||
|
@ -147,22 +147,29 @@ class _OrganizationFormState extends State<_OrganizationForm> {
|
|||||||
'Please select industry',
|
'Please select industry',
|
||||||
),
|
),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
Row(
|
GestureDetector(
|
||||||
children: [
|
onTap: () => setState(() => _agreed = !_agreed),
|
||||||
Checkbox(
|
child: Row(
|
||||||
value: _agreed,
|
children: [
|
||||||
onChanged: (val) => setState(() => _agreed = val ?? false),
|
Checkbox(
|
||||||
fillColor: MaterialStateProperty.all(Colors.white),
|
value: _agreed,
|
||||||
checkColor: Colors.white,
|
onChanged: (val) => setState(() => _agreed = val ?? false),
|
||||||
side: MaterialStateBorderSide.resolveWith(
|
fillColor: MaterialStateProperty.resolveWith((states) {
|
||||||
(states) =>
|
if (states.contains(MaterialState.selected)) {
|
||||||
BorderSide(color: Colors.blueAccent, width: 2),
|
return Colors.blueAccent;
|
||||||
),
|
}
|
||||||
),
|
return Colors.white;
|
||||||
const Expanded(
|
}),
|
||||||
child: Text('I agree to privacy policy & terms')),
|
checkColor: Colors.white,
|
||||||
],
|
side: const BorderSide(color: Colors.blueAccent, width: 2),
|
||||||
),
|
),
|
||||||
|
const Expanded(
|
||||||
|
child: Text('I agree to privacy policy & terms'),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
ElevatedButton(
|
ElevatedButton(
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user