fix: button terms and condition
This commit is contained in:
parent
a6ea9a2314
commit
506480d812
|
@ -3,6 +3,7 @@ import 'package:cims_apps/application/component/button/button_view.dart';
|
||||||
import 'package:cims_apps/application/component/set_pin_view/set_pin_view.dart';
|
import 'package:cims_apps/application/component/set_pin_view/set_pin_view.dart';
|
||||||
import 'package:cims_apps/application/theme/color_palette.dart';
|
import 'package:cims_apps/application/theme/color_palette.dart';
|
||||||
import 'package:cims_apps/core/route/route.dart';
|
import 'package:cims_apps/core/route/route.dart';
|
||||||
|
import 'package:cims_apps/core/utils/size_config.dart';
|
||||||
import 'package:cims_apps/features/auth/registration/viewmodel/submission_data_viewmodel.dart';
|
import 'package:cims_apps/features/auth/registration/viewmodel/submission_data_viewmodel.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
@ -60,47 +61,48 @@ class TermsAndConditionView extends StatelessWidget {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
})
|
}),
|
||||||
|
Consumer<SubmissionDataViewModel>(
|
||||||
|
builder: (context, provider, child) {
|
||||||
|
return Padding(
|
||||||
|
padding: const EdgeInsets.only(top: 24.0),
|
||||||
|
child: Row(
|
||||||
|
children: [
|
||||||
|
Expanded(
|
||||||
|
child: ButtonView(
|
||||||
|
name: 'Decline',
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.pop(context);
|
||||||
|
},
|
||||||
|
height: SizeConfig.height * .06,
|
||||||
|
marginVertical: 0,
|
||||||
|
backgroundColor: ColorPalette.white,
|
||||||
|
textColor: ColorPalette.primary,
|
||||||
|
isOutlined: true,
|
||||||
|
borderColor: ColorPalette.primary,
|
||||||
|
)),
|
||||||
|
const SizedBox(width: 16),
|
||||||
|
Expanded(
|
||||||
|
child: ButtonView(
|
||||||
|
name: 'Accept',
|
||||||
|
onPressed: () {
|
||||||
|
provider.nextSubmission(context);
|
||||||
|
routePush(context,
|
||||||
|
routeType: RouteType.pushReplace,
|
||||||
|
page: SetPinView(
|
||||||
|
currentPin: '',
|
||||||
|
submitPin: (context, pin) {},
|
||||||
|
));
|
||||||
|
},
|
||||||
|
height: SizeConfig.height * .06,
|
||||||
|
marginVertical: 0))
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
bottomNavigationBar: Consumer<SubmissionDataViewModel>(
|
|
||||||
builder: (context, provider, child) {
|
|
||||||
return Container(
|
|
||||||
height: 84,
|
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 24),
|
|
||||||
child: Row(
|
|
||||||
children: [
|
|
||||||
Expanded(
|
|
||||||
child: ButtonView(
|
|
||||||
name: 'Decline',
|
|
||||||
onPressed: () {
|
|
||||||
Navigator.pop(context);
|
|
||||||
},
|
|
||||||
marginVertical: 16,
|
|
||||||
backgroundColor: ColorPalette.white,
|
|
||||||
textColor: ColorPalette.primary,
|
|
||||||
isOutlined: true,
|
|
||||||
borderColor: ColorPalette.primary,
|
|
||||||
)),
|
|
||||||
const SizedBox(width: 16),
|
|
||||||
Expanded(
|
|
||||||
child: ButtonView(
|
|
||||||
name: 'Accept',
|
|
||||||
onPressed: () {
|
|
||||||
provider.nextSubmission(context);
|
|
||||||
routePush(context,
|
|
||||||
routeType: RouteType.pushReplace,
|
|
||||||
page: SetPinView(
|
|
||||||
currentPin: '',
|
|
||||||
submitPin: (context, pin) {},
|
|
||||||
));
|
|
||||||
},
|
|
||||||
marginVertical: 16))
|
|
||||||
],
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}),
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user