Create custom camera widget on Flutterflow | live preview camera

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ธ.ค. 2023
  • In case you want to create camera that can taking picture from you web cam. or you want to customize your camera preview, you can use this custom camera action.
    CameraPhoto (custom widget):
    github.com/yusuffirdaus/flutt...
    base64tofile (custom function):
    final bytes = base64Decode(base64Img);
    final file = FFUploadedFile(bytes: bytes);
    return file;
    .
    .
    .
    Follow my social media
    ig : / ysffrds11
    .
    If you have offering jobs/apps to me, sent me an email to
    ceripos.apps@gmail.com
  • บันเทิง

ความคิดเห็น • 55

  • @titagram
    @titagram 5 หลายเดือนก่อน +1

    Man you saved me a loooooot of hours! Thank you!!

  • @irineugranato
    @irineugranato 2 หลายเดือนก่อน

    Excelent !

  • @roy8362
    @roy8362 5 หลายเดือนก่อน

    Thank you bro 🙂

  • @tristanjoncour3222
    @tristanjoncour3222 7 หลายเดือนก่อน

    Thanks You a lot !!!

  • @Shadoskillz
    @Shadoskillz 6 หลายเดือนก่อน

    Thanks boss

  • @danzreview
    @danzreview 4 หลายเดือนก่อน

    keren bro

  • @junlifps
    @junlifps 2 หลายเดือนก่อน

    hello man im encoutering some problem's how can i save the image to firebase is it possible and im still a student im using flutterflow for my capstone project thanks!

  • @Yeet-vv7qj
    @Yeet-vv7qj 7 หลายเดือนก่อน +2

    Thanks for the video! Unfortunately I have problem. Why i get error?
    : The getter 'makePhoto' isn't defined for the type 'FFAppState'. Try importing the library that defines 'makePhoto', correcting the name to the name of an existing getter, or defining a getter or field named 'makePhoto'.

    • @yusuffirdaus11
      @yusuffirdaus11  7 หลายเดือนก่อน +1

      Hi I can invite you as collaborators on thise example project. Just email me

  • @The.DataScienceLab
    @The.DataScienceLab 5 หลายเดือนก่อน

    this is awesome!! quick questions...when you open this on a phone, it uses the front camera...what if you want the camera to face the user? like on facetime.

    • @yusuffirdaus11
      @yusuffirdaus11  4 หลายเดือนก่อน

      I never try something like that, I think you need another library to do that

  • @themepress9057
    @themepress9057 4 หลายเดือนก่อน

    Hi Mate, can add a Text when camera is open or any other option like a frame etc in flutterflow when camera is open ?

    • @yusuffirdaus11
      @yusuffirdaus11  4 หลายเดือนก่อน

      Yes you can, just added text widget on stack widget with this custom camera widget

  • @robertosedinho3107
    @robertosedinho3107 7 หลายเดือนก่อน +2

    Hello Yusuf.
    First, thank you very much for the video. I followed your steps and managed to capture photos from the camera without problems.
    Now I have an issue that I am not able to resolve. I can't upload the captured image to Firebase.
    When I upload images with the FlutterFlow camera function I do it without problems but when I want to upload the image that I have captured with your method, the image is not uploaded to Firebase.
    To see if the upload starts, I have the snackbar with the upload status information activated but it is not even displayed.
    I think it has to do with the type of variable I pass to upload.
    I use the variable "imageParam" as File to Upload (all within the custom widget "bsImage") but I don't know if I would have to do something with that variable for the upload to Firebase to work.
    I have tried uploading "imageParam" as Media and as File but in neither case does it work.
    Could you tell me how to solve this problem?
    Thank you very much in advance.

    • @yusuffirdaus11
      @yusuffirdaus11  7 หลายเดือนก่อน

      Hi I can invite you as collaborators on thise example project. Just email me

    • @user-vz6ge3yg8t
      @user-vz6ge3yg8t 7 หลายเดือนก่อน

      Hi, I am also wondering how to upload the image to firebase. Have you figured this out?

    • @yusuffirdaus11
      @yusuffirdaus11  7 หลายเดือนก่อน +2

      you have to create 1 more custom action, to upload base64 file to your own firestore. this is my custom code:
      import 'package:firebase_storage/firebase_storage.dart';
      Future base64Upload(String base64image) async {
      // upload base64 image to firebase storeage
      // Decode the base64 image
      Uint8List bytes = base64.decode(base64image);
      // Create a unique file name
      String fileName = DateTime.now().millisecondsSinceEpoch.toString() + ".jpg";
      // Upload the image to Firebase Storage
      Reference ref = FirebaseStorage.instance.ref().child(fileName);
      UploadTask uploadTask = ref.putData(bytes);
      TaskSnapshot taskSnapshot = await uploadTask.whenComplete(() => null);
      // Get the download URL of the uploaded image
      // String downloadUrl = await taskSnapshot.ref.getDownloadURL();
      final downloadUrl = await taskSnapshot.ref.getDownloadURL();
      return downloadUrl;
      }

    • @Dexter-jf6ht
      @Dexter-jf6ht 5 หลายเดือนก่อน

      hey, thanks for this awesome video. can you explain how you use this function? how should i set my action arguments, in order to make this function work? Thanks @@yusuffirdaus11​

    • @Dexter-jf6ht
      @Dexter-jf6ht 5 หลายเดือนก่อน +1

      Hello, how did you set the action arguments? Thanks for this awesome video@@yusuffirdaus11

  • @EspostoDaniele
    @EspostoDaniele 4 หลายเดือนก่อน

    ​ @yusuffirdaus11 thanks for sharing ur project, i've tryed it starting from the link you posted in another comment and and redo it following the video but i have a problem: when i click on the button the imagebs load but without the image taken, it keep show the placeholder, can you figure how can i solve it? i've checked and its always the same, even starting from ur project link, thanks!

    • @yusuffirdaus11
      @yusuffirdaus11  4 หลายเดือนก่อน

      Have you solved this problem?

    • @EspostoDaniele
      @EspostoDaniele 3 หลายเดือนก่อน

      @@yusuffirdaus11 unfortunately not yet

  • @shahmaarbaba
    @shahmaarbaba 5 หลายเดือนก่อน

    how to add custom widget on photo like showing date nd time

  • @Simon-tv8lq
    @Simon-tv8lq 4 หลายเดือนก่อน

    Thank you. The camera works on both FF and preview. But I don't know why it doesn't work in test mode

    • @yusuffirdaus11
      @yusuffirdaus11  4 หลายเดือนก่อน +1

      It should be, I have no idea why

    • @awlhunt
      @awlhunt 3 หลายเดือนก่อน +1

      I have a similar issue, though I just get “No Camera Available” on chrome and I get a spinner on mobile emulation (via browser). Unfortunately Local Run is such a piece of crap that I don’t even it still as it takes about 20 minutes to spin up a test instance and dies after a few minutes, but I will try that later when I have time.

  • @tristanjoncour3222
    @tristanjoncour3222 7 หลายเดือนก่อน +1

    Hey I have an error " no camera available", how I fix it ? I have all my google chrome perms enable for camera but it wont work

    • @yusuffirdaus11
      @yusuffirdaus11  7 หลายเดือนก่อน +2

      I forgot to mention, u cannot test on flutterflow test mode. You have to do web push org running on real device

    • @tristanjoncour3222
      @tristanjoncour3222 7 หลายเดือนก่อน

      @@yusuffirdaus11 thanks, I will try that 😉

    • @Yeet-vv7qj
      @Yeet-vv7qj 7 หลายเดือนก่อน

      @@yusuffirdaus11do you need to download the code for that? Or how to test on real device?

    • @user-vz6ge3yg8t
      @user-vz6ge3yg8t 7 หลายเดือนก่อน

      @@yusuffirdaus11 How to do this?

    • @yusuffirdaus11
      @yusuffirdaus11  7 หลายเดือนก่อน

      @@Yeet-vv7qj you can do “web push” to see the result, or you can also download the apk

  • @oumarmersileattimahamat7972
    @oumarmersileattimahamat7972 7 หลายเดือนก่อน

    Hi @yusuf. I want to discuss with you about a project I am working on in flutterflow. I stuck in a functionality and I need you for consultation or even hire you why not if you can do the job? I am waiting for your answer

    • @yusuffirdaus11
      @yusuffirdaus11  7 หลายเดือนก่อน +1

      Hi Oumar, you can sending me an email to ceripos.apps@gmail.com
      Thanks

  • @pedroenriqueperezgonzalez6849
    @pedroenriqueperezgonzalez6849 4 หลายเดือนก่อน

    I love you Yusuf.
    How can I change betwen diferents cameras?
    For example, my mobile phone have the front and the back camera and, by default, this choose the front camera.
    I would need the back camera.
    Thanks!

    • @pedroenriqueperezgonzalez6849
      @pedroenriqueperezgonzalez6849 4 หลายเดือนก่อน

      I have added this code into the 'build()':
      controller = CameraController(
      snapshot.data!.firstWhere(
      (camera) => camera.lensDirection == CameraLensDirection.back,
      orElse: () => snapshot.data![0], // Si no encuentra la cámara trasera, elige la primera cámara disponible
      ),
      ResolutionPreset.max,
      );

    • @yusuffirdaus11
      @yusuffirdaus11  4 หลายเดือนก่อน

      You can add additional code to check if the device has back camera and use the back camera.
      pub.dev/packages/camera/example

  • @FetaleKetones
    @FetaleKetones 4 หลายเดือนก่อน

    Is it possible to get a version of this that records video please?

    • @yusuffirdaus11
      @yusuffirdaus11  4 หลายเดือนก่อน

      Version?

    • @FetaleKetones
      @FetaleKetones 4 หลายเดือนก่อน

      @@yusuffirdaus11 Yes. This version takes photos. Can you make a version that records videos?

  • @dominoedits1242
    @dominoedits1242 4 หลายเดือนก่อน

    hello bro i have got the error like this please can u give me a solution to solve this
    unknown error compiling custom code a common cause is a custom widget or action whose name in the code does now match the name provided in the editor

    • @yusuffirdaus11
      @yusuffirdaus11  4 หลายเดือนก่อน

      Wait a moment I will make this project public.

    • @yusuffirdaus11
      @yusuffirdaus11  4 หลายเดือนก่อน +1

      app.flutterflow.io/project/camera-app-c7swm6

  • @spx5819
    @spx5819 หลายเดือนก่อน

    hi. what should i do? when i click to refresh code editor with pubspec dependencies, nothing happens

    • @yusuffirdaus11
      @yusuffirdaus11  หลายเดือนก่อน

      you can go to developer menu (top right ) and click view code and go to pubpspec.yaml file. and see if the package already dowloaded or not

    • @spx5819
      @spx5819 หลายเดือนก่อน

      @@yusuffirdaus11 when i look it hasnt. thank you for your response.

    • @spx5819
      @spx5819 หลายเดือนก่อน

      @@yusuffirdaus11 is it possible to provide a download link to the example flutterflow app you have in the video so we can attempt to learn from it ?

    • @spx5819
      @spx5819 หลายเดือนก่อน

      @@yusuffirdaus11 I just noticed you have another video with the camera setup🙏🏿 I downloaded it and I’m working on it now. Thank you

  • @alcahueteselectronicos9647
    @alcahueteselectronicos9647 หลายเดือนก่อน

    Hello friend. The video is great. I have a problem. All program run without errors but it shows no cameras available. Could You please help me?

    • @yusuffirdaus11
      @yusuffirdaus11  หลายเดือนก่อน

      For now you need to running on web publish or install apk to your device

  • @David_tommy
    @David_tommy 7 หลายเดือนก่อน

    🙏 video request: can u make a video on a chatgpt app that have the streaming effect, I think flutterflow doesn't support it natively

    • @yusuffirdaus11
      @yusuffirdaus11  7 หลายเดือนก่อน

      I will figure it out brother

    • @David_tommy
      @David_tommy 7 หลายเดือนก่อน

      @@yusuffirdaus11 thanks bro♥️