mirrored_repositories/MirrorFly-Flutter-Sample/lib/app/modules/image_view
import 'package:get/get.dart';
import 'package:mirror_fly_demo/app/data/session_management.dart';
import 'package:mirror_fly_demo/app/common/extensions.dart';

class ImageViewController extends GetxController {
  var imageName = ''.obs;
  var imagePath = ''.obs;
  var imageUrl = ''.obs;
  @override
  void onInit() {
    super.onInit();
    imageName(Get.arguments['imageName']);
    imagePath(Get.arguments['imagePath']);
    if(Get.arguments['imageUrl'].toString().startsWith("http")) {
      imageUrl(Get.arguments['imageUrl']);
    }else {
      imageUrl(SessionManagement.getMediaEndPoint().checkNull() +
          Get.arguments['imageUrl'].toString());
    }
  }


}
