fix : margin and padding
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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),
|
||||
},
|
||||
|
||||
@@ -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)),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user