Apparence-io / CamerAwesome

📸 Embedding a camera experience within your own app shouldn't be that hard. A flutter plugin to integrate awesome Android / iOS camera experience.
https://ApparenceKit.dev
MIT License
910 stars 199 forks source link

Box constraints problem using example code in README #388

Closed kyeshmz closed 7 months ago

kyeshmz commented 10 months ago

Steps to Reproduce

Describe how to reproduce the error

Create a page using the example code. Removing preview fit does not solve the problem.

 return Scaffold(
      // appBar: AppBar(),
      body: CameraAwesomeBuilder.awesome(
        previewFit: CameraPreviewFit.fitWidth,
        saveConfig: SaveConfig.photoAndVideo(),
        onMediaTap: (mediaCapture) {
          // OpenFile.open(mediaCapture.filePath);
        },
      ),

Expected results

What it should be Some kind of preview, I suppose.

Actual results

What you see

Screenshot 2023-08-30 at 11 14 59 AM

About your device

IS A SIMULATOR Brand Model OS
Google Pixel 6A 13

Your flutter version

Run this in your command line flutter --version

Paste the result here Flutter 3.13.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision efbf63d9c6 (2 weeks ago) • 2023-08-15 21:05:06 -0500 Engine • revision 1ac611c64e Tools • Dart 3.1.0 • DevTools 2.25.0

kyeshmz commented 10 months ago

So it seems like clicking the 4:3 renders this problem out, something to do with the initial settings?

g-apparence commented 7 months ago

This was a problem with the previous preview implementation. This should now be fixed. Feel free to reopen this if needed