1.3.8+27 uploaded.

design_3.0_TM_Module v1.3.8
Sikander Saleem 2 months ago
parent 642d1a908c
commit 79fa949ba2

@ -1,16 +1,16 @@
class URLs { class URLs {
URLs._(); URLs._();
static const String appReleaseBuildNumber = "23"; static const String appReleaseBuildNumber = "24";
// static const host1 = "https://atomsm.hmg.com"; // production url static const host1 = "https://atomsm.hmg.com"; // production url
// static const host1 = "https://atomsmdev.hmg.com"; // local DEV url // static const host1 = "https://atomsmdev.hmg.com"; // local DEV url
static const host1 = "https://atomsmuat.hmg.com"; // local UAT url // static const host1 = "https://atomsmuat.hmg.com"; // local UAT url
// static String _baseUrl = "$_host/mobile"; // static String _baseUrl = "$_host/mobile";
// static final String _baseUrl = "$_host/v2/mobile"; // new V2 apis // static final String _baseUrl = "$_host/v2/mobile"; // new V2 apis
static final String _baseUrl = "$_host/mobile"; // host local UAT // static final String _baseUrl = "$_host/mobile"; // host local UAT
// static final String _baseUrl = "$_host/v3/mobile"; // v3 for new CM,PM,TM static final String _baseUrl = "$_host/v3/mobile"; // v3 for production CM,PM,TM
static String _host = host1; static String _host = host1;
@ -22,9 +22,13 @@ class URLs {
// API Routes // API Routes
static get login => "$_baseUrl/MobileAuth/Login"; static get login => "$_baseUrl/MobileAuth/Login";
static get getUserInfo => "$_baseUrl/MobileAuth/GetUserInfo"; static get getUserInfo => "$_baseUrl/MobileAuth/GetUserInfo";
static get logout => "$_baseUrl/MobileAuth/Logout"; static get logout => "$_baseUrl/MobileAuth/Logout";
static get enableFaceId => "$_baseUrl/MobileAuth/EnabledFaceId"; static get enableFaceId => "$_baseUrl/MobileAuth/EnabledFaceId";
static get checkLoginValidation => "$_baseUrl/Account/Authenticate"; // web login static get checkLoginValidation => "$_baseUrl/Account/Authenticate"; // web login
static get checkAppVersion => "$_baseUrl/Account/CheckAppVersion"; // web login static get checkAppVersion => "$_baseUrl/Account/CheckAppVersion"; // web login
//Reset Password Apis... //Reset Password Apis...

@ -75,6 +75,7 @@ class SettingProvider extends ChangeNotifier {
} }
void selectAssetGroup(User user) { void selectAssetGroup(User user) {
if(user.assetGroups ==null) return;
if (user.assetGroups!.length == 1) { if (user.assetGroups!.length == 1) {
_assetGroup = user.assetGroups!.first; _assetGroup = user.assetGroups!.first;
} else { } else {

@ -55,30 +55,31 @@ extension WidgetExtensions on Widget {
Widget toExpanded({int flex = 1}) => Expanded(flex: flex, child: this); Widget toExpanded({int flex = 1}) => Expanded(flex: flex, child: this);
Widget handlePopScope({required BuildContext cxt, required VoidCallback onSave, bool? showPopUp =true}) { Widget handlePopScope({required BuildContext cxt, required VoidCallback onSave, bool? showPopUp = true}) {
return showPopUp! ? PopScope( return showPopUp!
canPop: false, ? PopScope(
onPopInvokedWithResult: (didPop, result) { canPop: false,
if (didPop) { onPopInvokedWithResult: (didPop, result) {
return; if (didPop) {
} return;
showDialog( }
context: cxt, showDialog(
builder: (BuildContext cxt) => AcknowledgeWorkDialog( context: cxt,
onSave: () => onSave(), builder: (BuildContext cxt) => AcknowledgeWorkDialog(
onDiscard: () { onSave: () => onSave(),
Navigator.of(cxt).pop(); onDiscard: () {
}, Navigator.of(cxt).pop();
), },
); ),
}, );
child: this): this; },
child: this)
: this;
} }
Widget toShimmer({bool isShow = true, double radius = 20,required BuildContext context}) => isShow Widget toShimmer({bool isShow = true, double radius = 20, required BuildContext context}) => isShow
? Shimmer.fromColors( ? Shimmer.fromColors(
// baseColor: const Color(0xffe8eff0), baseColor: context.isDark ? AppColor.backgroundDark : const Color(0xffe8eff0),
baseColor: Theme.of(context).scaffoldBackgroundColor,
highlightColor: AppColor.background(context), highlightColor: AppColor.background(context),
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.circular(radius), borderRadius: BorderRadius.circular(radius),
@ -94,17 +95,26 @@ extension WidgetExtensions on Widget {
? Column( ? Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
const SizedBox(width: 250, height: 24).toShimmer(isShow: isShow,context: context), const SizedBox(width: 250, height: 24).toShimmer(isShow: isShow, context: context),
8.height, 8.height,
const SizedBox(width: 160, height: 16).toShimmer(isShow: isShow,context: context), const SizedBox(width: 160, height: 16).toShimmer(isShow: isShow, context: context),
8.height, 8.height,
const SizedBox(width: 120, height: 18).toShimmer(isShow: isShow,context: context).toShimmer(isShow: isShow,context: context), const SizedBox(width: 120, height: 18).toShimmer(isShow: isShow, context: context).toShimmer(isShow: isShow, context: context),
], ],
).toShadowContainer(context) ).toShadowContainer(context)
: this; : this;
Widget toShadowContainer(BuildContext context, Widget toShadowContainer(
{bool showShadow = true, double borderRadius = 14, bool withShadow = true, Color? backgroundColor, Color borderColor = Colors.transparent, double padding = 16, EdgeInsets? paddingObject, EdgeInsets? margin,}) => BuildContext context, {
bool showShadow = true,
double borderRadius = 14,
bool withShadow = true,
Color? backgroundColor,
Color borderColor = Colors.transparent,
double padding = 16,
EdgeInsets? paddingObject,
EdgeInsets? margin,
}) =>
withShadow withShadow
? Container( ? Container(
padding: paddingObject ?? EdgeInsets.all(padding), padding: paddingObject ?? EdgeInsets.all(padding),

@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at # Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.3.7+26 version: 1.3.8+27
environment: environment:
sdk: ">=3.5.0 <4.0.0" sdk: ">=3.5.0 <4.0.0"

Loading…
Cancel
Save