fix : margin and padding
This commit is contained in:
@@ -22,14 +22,14 @@ class CaptchaWidgetLogic extends GetxController with StateMixin<CaptchaResponseM
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void onClose() {
|
void onClose() {
|
||||||
textController.value.dispose();
|
textController.clear();
|
||||||
textController.close();
|
textController.dispose();
|
||||||
super.onClose();
|
super.onClose();
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> getCaptcha() async {
|
Future<void> getCaptcha() async {
|
||||||
change(null, status: RxStatus.loading());
|
change(null, status: RxStatus.loading());
|
||||||
textController.value.clear();
|
textController.clear();
|
||||||
await Future.delayed(Duration(milliseconds: 800));
|
await Future.delayed(Duration(milliseconds: 800));
|
||||||
captchaKey.value = (random.nextInt(900000)+100000).toString();
|
captchaKey.value = (random.nextInt(900000)+100000).toString();
|
||||||
change(value, status: RxStatus.success());
|
change(value, status: RxStatus.success());
|
||||||
|
|||||||
@@ -92,7 +92,6 @@ class _BasePageState extends State<BasePage> {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
widget.routesWidget != null ? widget.routesWidget! : buildPageRoute(widget.routes!),
|
widget.routesWidget != null ? widget.routesWidget! : buildPageRoute(widget.routes!),
|
||||||
const SizedBox(height: 8),
|
|
||||||
if (!widget.isBase && widget.hasSearch) ...{
|
if (!widget.isBase && widget.hasSearch) ...{
|
||||||
SearchWidget(onSearchChanged: widget.onSearchChanged),
|
SearchWidget(onSearchChanged: widget.onSearchChanged),
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import 'package:rasadyar_core/core.dart';
|
|||||||
|
|
||||||
Widget buildPageRoute(List<String> route) {
|
Widget buildPageRoute(List<String> route) {
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.fromLTRB(0, 4, 7, 8),
|
padding: const EdgeInsets.fromLTRB(0, 4, 7, 4),
|
||||||
child: Text(route.isEmpty ? 'خانه' : route.join("/"), style: AppFonts.yekan14.copyWith(color: AppColor.bgDark)),
|
child: Text(route.isEmpty ? 'خانه' : route.join("/"), style: AppFonts.yekan14.copyWith(color: AppColor.bgDark)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ class _SearchWidgetState extends State<SearchWidget> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return ObxValue((data) {
|
return ObxValue((data) {
|
||||||
return AnimatedContainer(
|
return AnimatedContainer(
|
||||||
|
margin: EdgeInsets.symmetric(vertical: 4),
|
||||||
duration: const Duration(milliseconds: 300),
|
duration: const Duration(milliseconds: 300),
|
||||||
padding: const EdgeInsets.only(top: 5),
|
padding: const EdgeInsets.only(top: 5),
|
||||||
curve: Curves.easeInOut,
|
curve: Curves.easeInOut,
|
||||||
|
|||||||
Reference in New Issue
Block a user