How to Show Camera Inside Flutter App!

Поділитися
Вставка
  • Опубліковано 14 жов 2024
  • Get 10,000 free mins with ZEGOCLOUD SDK: bit.ly/43uijSL
    Pre-built UIKits to build flutter apps faster: bit.ly/415hkHk
    Best flutter video call sdk: bit.ly/3UwIHaC
    ZEGOCLOUD allows you to easily build video calls, voice calls, live streaming and chat apps within minutes.
    Hello everybody, i hope you had a great day!
    In this video, i will show you how to use camera in flutter app!
    I'll be making more of these kind of video where i help to solve your probIems. I hope you learn something new from my video! Sorry i can't explain my code much in the video. If you have any question, feel free to leave it in the comment section, i will answer it later! If you like my video, please leave a like on the video. Also, consider subscribing if you like my contents!
    Source Code :
    github.com/Byt...
    Maybe a little help? ;D
    ko-fi.com/bytx...
    I will upload more video about flutter, making an app from scratch, and others! If you have any video idea, please leave it in the comment section down below!
    Music :
    ♪ Jam (Prod. by Lukrembo)
    Link : • (no copyright music) l...
    ♪ Pancake (Prod. by Lukrembo)
    Link : • lukrembo - pancake (ro...
    #zegocloud #flutter #uikits

КОМЕНТАРІ • 34

  • @JackTheOrangePumpkin
    @JackTheOrangePumpkin Рік тому +14

    if anybody gets stuck on the "late cameraController not initialized" error. Try wrapping your build method in a try catch like this: (remove the if (cameraController.value.isInitialized))
    @override
    Widget build(BuildContext context) {
    try {
    return Scaffold(
    body: Stack(
    children: [
    CameraPreview(cameraController),
    ],
    ),
    );
    } catch (e) {
    return const SizedBox();
    }
    }
    Like/Comment if it works/ does not work for you

  • @mayur4183
    @mayur4183 Рік тому +1

    how can i open front and back camera at one screeen at same time?? pls reply

  • @snim9515
    @snim9515 Рік тому +2

    I cant access the location where the file is saved. How can I change it?

  • @rexkozy7086
    @rexkozy7086 Рік тому

    How can you implement a face detection feature within a specific container in the camera preview

  • @DanishMaulaa
    @DanishMaulaa Рік тому +3

    but how do i not show the error screen when I navigate to camera

    • @omtanna
      @omtanna Рік тому

      Run the app again in terminal and it will work
      After running again it will ask for permission, click allow while using the app!

  • @andrewebsites
    @andrewebsites Рік тому

    Would it be like using security cameras using intelbras API an example?

  • @avishsharma8852
    @avishsharma8852 Рік тому

    do you give personal classes?

  • @ultraviolet-i9u
    @ultraviolet-i9u Рік тому

    Nice tutorials it help a lot, but how to make the camera full screen without the big white bar at the bottom ?

    • @henryoncode
      @henryoncode 11 місяців тому

      Use a sizedbox and mediaquery
      SizedBox(
      height: MediaQuery.of(context).size.height,
      child: CameraPreview(cameraController),
      )

  • @RaabStephan
    @RaabStephan Рік тому

    Nice tutorial.
    How to make the stack be fullscreen without the gap at the bottom?

    • @lumiplex404
      @lumiplex404 Рік тому +1

      super easy, wrap the camera preview with a container and give it height and width of double.infinity

  • @TrikNgonlen
    @TrikNgonlen 2 роки тому

    Wow....lovely music...awesome tutorial...

  • @TrikNgonlen
    @TrikNgonlen 2 роки тому

    Will you show how to upload this taken image to API/Laravel API server?

    • @Bytx-youtube
      @Bytx-youtube  2 роки тому

      There's some tutorial on how to upload image into laravel on google, you can give the taken image's path to it

  • @arttech7479
    @arttech7479 Рік тому

    their is a error coming that you did not fixed . kindly give solution to that

  • @rahulmukhiya9975
    @rahulmukhiya9975 Рік тому

    How to get rid of the white bar on the bottom?

  • @jaiminmodi5573
    @jaiminmodi5573 Рік тому +2

    Where is Permission Handler and Permission Popups ?? 😩😩😩😩😩😖

  • @muhammadrandi6223
    @muhammadrandi6223 2 роки тому +2

    why its always show lateInitialize error, and how to fix it?

    • @MrtaiDiary
      @MrtaiDiary 2 роки тому

      @@muhammadrandi6223 Hi i also have same problem. could you tell me how you solve it ?

    • @muhammadrandi6223
      @muhammadrandi6223 2 роки тому

      @@MrtaiDiary and use it later in camera page

    • @twanvantol7348
      @twanvantol7348 2 роки тому

      @Muhammad Randi restart the application fully, so red button and than restart it... error should be gone then

    • @omtanna
      @omtanna Рік тому

      ​@@muhammadrandi6223​
      kindly provide with solution for LateInitialize Erro

    • @hishamshattnawi4646
      @hishamshattnawi4646 Рік тому

      مرحبا ممكن اعرف كيف حليت المشكلة؟

  • @gavravdhongadi9824
    @gavravdhongadi9824 Рік тому

    but where are we supposed to keep the mainscreen.dart file

    • @omtanna
      @omtanna Рік тому

      In the Lib folder
      along with following code in main.dart "import './mainscreen.dart';"

  • @haikaljaafar77
    @haikaljaafar77 Рік тому

    source code not found 404

  • @muneebshahzad1335
    @muneebshahzad1335 2 роки тому

    great

  • @Game2Fame1
    @Game2Fame1 7 місяців тому

    fuck that music off mate