Vaibhav_Enhancement-#419 #35

Merged
vikas.nale merged 4 commits from Vaibhav_Enhancement-#419 into main 2025-06-02 07:52:53 +00:00
2 changed files with 34 additions and 17 deletions
Showing only changes of commit aca2722ee4 - Show all commits

View File

@ -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:

View File

@ -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(