fix : margin and padding

This commit is contained in:
2025-07-07 08:36:26 +03:30
parent 1c732efc2f
commit 21d3490d0c
4 changed files with 5 additions and 5 deletions

View File

@@ -22,14 +22,14 @@ class CaptchaWidgetLogic extends GetxController with StateMixin<CaptchaResponseM
@override
void onClose() {
textController.value.dispose();
textController.close();
textController.clear();
textController.dispose();
super.onClose();
}
Future<void> getCaptcha() async {
change(null, status: RxStatus.loading());
textController.value.clear();
textController.clear();
await Future.delayed(Duration(milliseconds: 800));
captchaKey.value = (random.nextInt(900000)+100000).toString();
change(value, status: RxStatus.success());

View File

@@ -92,7 +92,6 @@ class _BasePageState extends State<BasePage> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
widget.routesWidget != null ? widget.routesWidget! : buildPageRoute(widget.routes!),
const SizedBox(height: 8),
if (!widget.isBase && widget.hasSearch) ...{
SearchWidget(onSearchChanged: widget.onSearchChanged),
},

View File

@@ -3,7 +3,7 @@ import 'package:rasadyar_core/core.dart';
Widget buildPageRoute(List<String> route) {
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)),
);
}

View File

@@ -26,6 +26,7 @@ class _SearchWidgetState extends State<SearchWidget> {
Widget build(BuildContext context) {
return ObxValue((data) {
return AnimatedContainer(
margin: EdgeInsets.symmetric(vertical: 4),
duration: const Duration(milliseconds: 300),
padding: const EdgeInsets.only(top: 5),
curve: Curves.easeInOut,