feat : api call and get captcha
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rasadyar_auth/presentation/widget/clear_button.dart';
|
||||
@@ -24,16 +26,20 @@ class CaptchaWidget extends GetView<CaptchaWidgetLogic> {
|
||||
border: Border.all(color: Colors.grey.shade300),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
child: Expanded(child:controller.obx((state) {
|
||||
return Container(color: Colors.blue,);
|
||||
},
|
||||
child: controller.obx(
|
||||
(state) => Image.memory(base64Decode(state?.captchaImage??''),fit: BoxFit.cover,),
|
||||
onLoading: const Center(
|
||||
child: CircularProgressIndicator(
|
||||
child: CupertinoActivityIndicator(
|
||||
color: AppColor.blueNormal,
|
||||
strokeWidth: 2,
|
||||
),
|
||||
),
|
||||
)),
|
||||
onError: (error) {
|
||||
return const Center(
|
||||
child: Text(
|
||||
'خطا در بارگذاری کد امنیتی',
|
||||
style: AppFonts.yekan13,));
|
||||
},
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
IconButton(
|
||||
|
||||
Reference in New Issue
Block a user