Imgkl / davinci

A flutter package to convert any widget to an Image.
https://pub.dev/packages/davinci
MIT License
46 stars 22 forks source link

How to use this Plugin in ListView Builder #16

Closed shaadart closed 3 years ago

shaadart commented 3 years ago

This is My HomeScreen,

homepage

There is the More Button, Which Captures the ScreenShot. code

I can Easily with the Plugin Capture ScreenShot, But the Issue Coming is when I added the New Element the Plugin Captures the Screenshot of new element and when I add again a new element the plugin captures the screenshot the new one and forgets about the old. like this,

last photo

shaadart commented 3 years ago

This is the Full Code, You can Skip everything and just start looking at the Code from Single scroll View Child.

import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';
import 'dart:ui' as ui;
import 'package:audioplayers/audioplayers.dart';
import 'package:davinci/core/davinci_capture.dart';
import 'package:davinci/core/davinci_core.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:gallery_saver/gallery_saver.dart';
import 'package:gradient_widgets/gradient_widgets.dart';

import 'package:hive/hive.dart';
import 'package:hive_flutter/hive_flutter.dart';

import 'package:path_provider/path_provider.dart';

import 'package:toodo/main.dart';
import 'package:toodo/pages/listspage.dart';
import 'package:toodo/uis/completedListUi.dart';
import 'package:share/share.dart';
import 'package:toodo/models/completed_todo_model.dart';
import 'package:toodo/models/todo_model.dart';
import 'package:toodo/uis/addTodoBottomSheet.dart';
import 'package:carbon_icons/carbon_icons.dart';
import 'package:dart_random_choice/dart_random_choice.dart';

import 'dart:core';

String firstButtonText = 'Take photo';
Box<TodoModel> box;
var todoList = [];
void incrementCount() {
  totalTodoCount.value++;
}

class TodoCard extends StatefulWidget {
  const TodoCard({
    Key key,
  }) : super(key: key);

  @override
  _TodoCardState createState() => _TodoCardState();
}

class _TodoCardState extends State<TodoCard> {
  GlobalKey imageKey;
  var todokeyValue;

  //

  @override
  void initState() {
    super.initState();
  }

  //bool isCompleted = false;

  @override
  Widget build(BuildContext context) {
    return ValueListenableBuilder(
        valueListenable: Hive.box<TodoModel>(todoBoxname).listenable(),
        builder: (context, Box<TodoModel> box, _) {
          List<int> keys = box.keys.cast<int>().toList();

          List<String> heyss = [
            "Hoi",
            "hi",
            "heeh",
            "heys",
            "hey",
            "All",
            "koool",
            "coooool",
            "pool",
            "lalala",
            "oeye",
            "arrrees",
            "yaahoo",
            "gigigi",
            "swiiiinggg",
            "zoooom",
            "booo",
            "freeeeee",
            "oh haaa",
            "haai",
            "Hooooollla",
            "hoela",
            "yo",
            "yop",
            "salaaaam",
            "assalaaam",
            "hui",
            "Anyway",
            "so",
            "bravvo",
            "Chu-chu",
            "hoooyaah",
            "here",
            "now",
            "you know?",
            "do you know?",
            "amazing!",
            "right",
            "aloooha",
            "hui-hui",
            "hututu",
            "hi",
            "hello",
            "hey all",
            "hey people",
            "guys",
            "Bonjour",
            "Hola",
            "Guten Tag",
            "olá",
            "marhabaan",
            "kon’nichiwa",
            "hyālō",
            "vandanalu",
            "namaskār",
            "vanakkam",
            "hallo",
            "ke aal aee",
            "moni",
            "lllu",
            "haiiyye",
            "uhi",
            "yeh",
            "yeaaaa",
            "waah",
            "yoaah",
            "soo aaah",
            "thus",
            "hussshh",
            "ku-ooh",
            "ji ji",
            "ji",
            "heheh",
            "heya",
            "hey ya",
            "ho yah",
            "hayee",
            "hoo",
            "joyyy",
            "aa-ji",
            "eeh",
            "aayye",
            "heeeye"
                "ggg",
            "hhhee",
            "(giggles)",
            "(winks)",
            "supp",
            "says",
            "tells",
            "asks",
            "yellow",
            "greeen",
            "cheeese",
            "hoooooyah",
          ];

          String randomHeyss = randomChoice(heyss);
          List<String> workList = [
            "write that thing",
            "write them all",
            "move a bit",
            "swimming",
            "keep learning",
            "do exercising",
            "do meditation",
            "do t-shirt designing",
            "make goods",
            "cultivate fruits",
            "make that movie",
            "learn dancing",
            "learn singing",
            "make that movie",
            "do t-shirt designing",
            "make goods",
            "cultivate fruits",
            "make that movie",
            "learn dancing",
            "learn singing",
            "write letters",
            "making videos",
            "making puzzles",
            "learn calliagraphy",
            "praising lord",
            "do streching",
            "paint sneeekers",
            "sell kites",
            "do business",
            "sow some seeds of Apples",
            "organize work-space",
            "play cricket",
            "write blogs",
            "write poems",
            "write programmes",
            "make jams",
            "create apps",
            "read books",
            "Attract people",
            "Make friends",
            "dive into work",
            "designing",
            "make designs",
            "do designing",
            "make charity",
            "Meet Clients",
            "Learning",
            "make collections",
            "cooking",
            "make toodoolee",
            "make music",
            "make beats",
            "Save Animals",
            "Do personal Develoopment",
            "learn that musical instrument",
            "learn languages",
            "do photography",
            "do yoga",
            "write poems",
            "write stories",
            "write essays",
            "learn beatbox",
            "do cycling",
            "give charity",
            "organize stuffs",
            "create webpages",
            "create websites",
            "create my own languages",
            "make available food for some people",
            "learn smilling",
            "learn socialising",
            "learn talking",
            "learn painting",
            "learn jockey",
            "learn football",
            "learn cricket",
            "learn basketball",
            "learn home designing",
            "jogging",
            "do treckking",
            "learn French",
            "learn Spanissssh",
            "learn Napaaaliii",
            "learn Thaaaaaai",
            "learn Bengaaalii",
            "learn Portugueeeeese",
            "learn Twi",
            "learn Englisss",
            "learn Dutchhhh",
            "learn Hindiiii",
            "learn Araaaaaaaabic",
            "learn Japaneeeseee",
            "work",
            "work",
            "work",
          ];

          String work = randomChoice(workList);
          Map<String, String> imageLists = {
            '🔋': "Energy, aaaaaaaa.. \n Me = Bolt",
            '🐝': "Get Things done, Nowww...",
            '🔔🐱':
                "We Belive in working, goodness comes automatically, do we?",
            '✔️': "Writing it first then check it",
            '☕':
                "Die hard fan of Coffee, but ${work} is more in caffiiinnnee..",
            '🗻':
                "I turn Dreams to Real, after undertanding, i have to ${work} for it",
            '👍': "good.. now lift goods..",
            '🎸⚡': "Energy-ised! Now to break all the odds..",
            '👋😃':
                "Hey, How's all going.. I am Sure in the presence of you, nothing go wrong",
            '😎🌴':
                "Hey Beauty, do You know? your work of - '${work}' is more beautiful?",
            '🐣': "Welcome to the realest world... #WorldofWork",
            '🎉🎉🎉': "Toooooodooooo, hiiiiiiiiiiiis",
            '🍩':
                "if you think, your work is sweeter than any stuff, you are a bolt...",
            '📮': "Can't Mail you, So i mailed myself..",
            '🦍':
                "hiHiHi... Welcome to the Toodooooolee Squad, BTW.. I know you got to ${work}.. ",
            '🐓😃':
                "I am going to ${work} on this chicken, you can also join me...",
            '📦':
                "hew.. to the \n work-shipper, - Who ships work, to its Destination",
            '🚀': "Going to space... to see what stars you will make",
            '🌞':
                "Hey.. hey.. hey.. Today is Blessed to see you.. yes 'today'.",
            '🤝':
                "Let me Greet you with all the greetings i have, so that you greet your urgues to $work, like toodles",
            '🐿️🌰':
                "Going to the operator, to ask them to Kill the Subscription of my 'Nut-Flix'..",
            '🦕🌕':
                "Will you join? We are going to the astronauts in space, so to check what Computers they use in space? it's certainly not windows.",
            '🌻': "Me = says, good. and spreading lucks to all of you.",
            '🌵':
                "Stick with me...We will go to different places after the Work",
            '🕊️': "Voilaa.. Fleeeee...",
            '🐍😛':
                "This Boi, is really good at tongue Twisting, i need to ${work} and learn tounge-twisting hard from now... - Bro I will seeeeee you next time",
            '🙌': "Salaaaaam .... to all revolutionaries",
            '🔥': "Fireeeee....., \n Let's make our Head and Chests to ${work}",
            '🌺💐':
                "Aloha.. I am in Hawaii, yeah, but still got to ${work} here..",
            '🌅':
                "Best time to enjoy, live, and schedule... Lemme schedule this day",
            '☕👱':
                "I drink so much coffee at Work, I consider it part of my daily grind.",
            '🚀🌱':
                //🏖️
                "Going to the Space to plant this, so it will see your progress when i will not be there. ",
            '🐬':
                "Under the sea... (in a Vacation). Yeah, i will ${work} here too..",
            '🌳':
                "It's my Dream to make this bush a big tree, lemme ${work} for it",
            '✨': "Hi.. (Swwwwwing....)",
            '💨':
                "I realised, Dreams also needs a push of focused work to get a flight.",
            "🏁": "Letsssssss. Staaaaaaaaaaaart.....",
            '➰': "Comming out of the loop, so to ${work}...",
            '🍉': "Staaaaaaaaaaaaaaaaaaaaaaaaarted now.... but melons first..",
            '🎶🕺🏻': "Dance with me... from whereever you are..",
            '🛫': "To all.. Come, Let's Fly together and make the history..",
            '🎹':
                "Can you name Something? which is better than composing your own music..",
            '🏆': "Glory is yet to be come.. Prepare for the day 🌟",
            '🏃💨': "On the work-path... or to $work paathh..",
            '⭐': "When i come forward to $work a New Star borns..",
            '🦘':
                "Skipping just before writing tooodooolee, not for skip-ing the work.. hehe",
            '👨🏻‍🌾': "Your own successful biz, that's what your best job is!",
            '🎊🎁':
                "Stick with me.. We will Enjoy every world after this last piece of work",
            '🍵':
                "Yums...Together we all Will Drink it just after swimming on the waves of lilly-lil bits of work..",
            '🏇🏻':
                "Lazies will say I am Phsyco-path.. But I am On the ${work}-path...",
            '👻':
                "Yeah... yeah... yeah... Now you know, (${work}) is Important for the whole life.. hmm..",
            '💡': "It's as easy as it is looking hard",
            '😄':
                "Look... Everytime we all are happy or we 'am' happy, #WeareOne",
            '😌':
                "Things sometimes gets tough, but its good to see we are for one another, #WeareOne",
            '🌌':
                "Look the work you did yesterday has became a star in our Silky Bay Galaxy,",
            '🦖👦':
                "We Found some strawberry under the cave... Let me make a Jam out of it..",
            '🚦':
                "It's all green, why don't we engage ourselves to $work now..",
            '​🏀​🍩​☕​':
                "Fresh Mornings is best among all times of the day, let's create this time best day of the whole life.. lemme write that i need to '$work' for today.",
            '⚡⚡⚡': "Team... Awesome. (ENERGY)",
            '💙🎨':
                "I colored my heart Blue from Red.. and it was the best of all descissions",
            '🌈⚽': "Swiiiiiing... in dreams and in real tooo...",
            '👤💰':
                "Shhh.. Un-Stealing the lucks and Stealing the Urgues to ${work}",
            '👋✨': "Hey <3000..\n and \n ${work} > 3000000",
            '🐦': "Chu..Chu.. All - Aboard Next Stop to the ${work}'s Zone.",
            '🥊👊': "Preparing to ${work}, You can also join the Grind. heh",
            '🦄': "Aaaye, I am not Unicorn, i am just, uniquely-born :)",
            '💪❤️':
                "Me: Training the heart hard.... and discard the rest of the taaaask..",
            '➕':
                "Pressssssssss the Plussssssssss... it will make you surplus. 💪💪💪",
            '😎🍹':
                "Chillling.. Yeah also got some killing stuffs, Yeah to $work ... and you?",
          };
          /*
          🧑‍ Heey Debhelooopars, b...b.b..break;, 
          You can Run your Creative Muscles,
          You can Add more First Screen Stuffs as a Map, 
          (template : {"Emoji" : "Amazing Text"});
          You can Always Contribute, 
          Just Download the Code and Punch the Push it..

        TARGET: We can together Achieve ATLeast 30 First-Screens Welcomes..
        Also You can Ask me to Remove this all, if you got any good Ideas, that we can Paste it inside the First Screen 
        This, This Whole lot of Code just belongs just to you and Humanity...

        BTW, Lets Continue the Code..   
         */

          var listEmojiKeys = imageLists.keys;
          var randomImage = randomChoice(listEmojiKeys);

          var listEmojisValues = imageLists["$randomImage"];

          // var randomValue = randomChoice(listImageValues);

          if (todoBox.isEmpty == true && completedBox.isEmpty == true) {
            return Center(
              child: Container(
                width: MediaQuery.of(context).size.height / 2,
                height: MediaQuery.of(context).size.height / 2,
                padding: const EdgeInsets.all(0.0),
                child: Column(
                  children: [
                    Card(
                      child: FlatButton(
                        splashColor: Colors.white60,
                        onPressed: () {
                          addTodoBottomSheet(context);
                        },
                        child: Padding(
                          padding: EdgeInsets.fromLTRB(
                            0,
                            MediaQuery.of(context).size.height / 30,
                            0,
                            0,
                          ),
                          child: Column(
                            children: [
                              ListTile(
                                title: Center(
                                  child: Text(
                                    "${randomImage}",
                                    style: TextStyle(
                                      fontSize:
                                          MediaQuery.of(context).size.height /
                                              22,
                                    ),
                                  ),
                                ),
                              ),
                              ListTile(
                                title: Padding(
                                  padding: EdgeInsets.fromLTRB(8, 0, 8,
                                      MediaQuery.of(context).size.height / 40),
                                  child: Opacity(
                                    opacity: 0.7,
                                    child: Text(
                                      '$listEmojisValues',
                                      textAlign: TextAlign.center,
                                      style:
                                          Theme.of(context).textTheme.subtitle1,
                                    ),
                                  ),
                                ),
                              ),
                            ],
                          ),
                        ),
                      ),
                    ),
                    Center(
                      child: ListTile(
                        subtitle: Text(
                          "$randomHeyss, To Start press +",
                          textAlign: TextAlign.center,
                        ),
                      ),
                    ),
                  ],
                ),
              ),
            );
          } else if (todoBox.length == todoBox.length) {
            return SingleChildScrollView(
                scrollDirection: Axis.vertical,
                physics: ScrollPhysics(),
                child: ListView.separated(
                    physics: NeverScrollableScrollPhysics(),
                    //itemCount: box.length,// editing a bit
                    itemCount: box.length,
                    shrinkWrap: true,
                    separatorBuilder: (_, index) => Container(),
                    itemBuilder: (_, index) {
                      final int key = keys[index];
                      final TodoModel todo = box.get(key);
                      String completedTodoName = todo.todoName;
                      String completedTodoEmoji = todo.todoEmoji;
                      String completedTodoRemainder = todo.todoRemainder;

                      return Davinci(builder: (key) {
                        ///3. set the widget key to the globalkey
                        this.imageKey = key;
                        return Container(
                          // child: Card(
                          //   shape: RoundedRectangleBorder(
                          //     borderRadius: BorderRadius.circular(0),
                          //   ),
                          //   color: Theme.of(context).canvasColor,
                          child: Card(
                            // elevation: 0.7,
                            child: Wrap(
                              children: [
                                ListTile(
                                  leading: IconButton(
                                    onPressed: () {
                                      setState(() {
                                        todo.isCompleted = !todo.isCompleted;
                                        if (todo.isCompleted == true) {
                                          CompletedTodoModel completedTodo =
                                              CompletedTodoModel(
                                            completedTodoName:
                                                completedTodoName,
                                            completedTodoEmoji:
                                                completedTodoEmoji,
                                            completedTodoRemainder:
                                                completedTodoRemainder,
                                            isCompleted: todo.isCompleted =
                                                true,
                                          );
                                          print(
                                              completedTodo.completedTodoName);
                                          completedBox.add(completedTodo);
                                          todoBox.deleteAt(index);
                                          print(completedBox.length);
                                        }
                                      });
                                      player.play(
                                        'sounds/notification_simple-02.wav',
                                        stayAwake: false,
                                        // mode: PlayerMode.LOW_LATENCY,
                                      );
                                    },
                                    icon: todo.isCompleted == false
                                        ? Icon(CarbonIcons.radio_button,
                                            color: Colors.blue)
                                        : Icon(CarbonIcons.checkmark_filled,
                                            color: Colors.blue),
                                    color: Colors.blue,
                                  ),

                                  title: Opacity(
                                    opacity: 0.8,
                                    child: Text(
                                      '${todo.todoName}',
                                      style: TextStyle(
                                        fontFamily: "WorkSans",
                                        fontStyle: FontStyle.normal,
                                        fontSize: 20,
                                        fontWeight: FontWeight.w600,

                                        // color: Colors.black54
                                      ),
                                    ),
                                  ),
                                  // subtitle: Text("written on morning"),
                                ),

                                // Divider(thickness: 1.2),
                                ButtonBar(
                                  children: [
                                    (todo.todoRemainder) == null
                                        ? Container()
                                        : Text(
                                            '${todo.todoRemainder.toString()}'),
                                    (todo.todoRemainder) == null ||
                                            todo.todoEmoji == "null"
                                        ? Container()
                                        : Opacity(
                                            opacity: 0.5,
                                            child: Text(
                                              "•",
                                              style: TextStyle(
                                                fontSize: 14,
                                                //color: Colors.black54
                                              ),
                                            ),
                                          ),
                                    (todo.todoEmoji) == "null"
                                        ? Container()
                                        : Text('${todo.todoEmoji}',
                                            style: TextStyle(
                                              fontSize: 20,
                                            )),
                                    IconButton(
                                      color: Colors.blue,
                                      onPressed: () {
                                        player.play(
                                          'sounds/ui_tap-variant-01.wav',
                                          stayAwake: false,
                                          // mode: PlayerMode.LOW_LATENCY,
                                        );
                                        showModalBottomSheet(
                                          context: context,
                                          isScrollControlled: false,
                                          shape: RoundedRectangleBorder(
                                            // <-- for border radius
                                            borderRadius: BorderRadius.only(
                                              topLeft: Radius.circular(10.0),
                                              topRight: Radius.circular(10.0),
                                            ),
                                          ),
                                          builder: (context) {
                                            // Using Wrap makes the bottom sheet height the height of the content.
                                            // Otherwise, the height will be half the height of the screen.
                                            return Wrap(
                                              children: [
                                                // FlatButton(
                                                //   onPressed: () {},
                                                //   child: ListTile(
                                                //     leading: Icon(CarbonIcons.edit),
                                                //     title: Text("Edit"),
                                                //   ),
                                                // ),
                                                FlatButton(
                                                  onPressed: () {
                                                    player.play(
                                                      'sounds/ui_tap-variant-01.wav',
                                                      stayAwake: false,
                                                      // mode: PlayerMode.LOW_LATENCY,
                                                    );
                                                    Navigator.pop(context);
                                                    if (todo.todoEmoji ==
                                                            "null" &&
                                                        todo.todoRemainder ==
                                                            null) {
                                                      Share.share(
                                                          "${todo.todoName} \n \n @ToodoleeApp",
                                                          subject:
                                                              "Today's Toodo");
                                                    } else if (todo
                                                            .todoRemainder ==
                                                        null) {
                                                      Share.share(
                                                          "${todo.todoName} \n ${todo.todoEmoji}  \n \n @ToodoleeApp",
                                                          subject:
                                                              "Today's Toodo");
                                                    } else if (todo.todoEmoji ==
                                                        "null") {
                                                      Share.share(
                                                          "${todo.todoRemainder}⏰ \n \n @ToodoleeApp",
                                                          subject:
                                                              "Today's Toodo");
                                                    } else {
                                                      Share.share(
                                                          "${todo.todoName} ${todo.todoEmoji} \n at ${todo.todoRemainder} \n \n @ToodoleeApp",
                                                          subject:
                                                              "Today's Toodo");
                                                    }
                                                  },
                                                  child: ListTile(
                                                    leading:
                                                        Icon(CarbonIcons.share),
                                                    title: Text("Share"),
                                                  ),
                                                ),

                                                FlatButton(
                                                  onPressed: () async {
                                                    // setState(() {
                                                    //   todokeyValue = GlobalKey(
                                                    //       debugLabel:
                                                    //           "$randomHeyss $randomHeyss");
                                                    // });

                                                    await DavinciCapture.click(
                                                      imageKey,
                                                      saveToDevice: false,
                                                      fileName:
                                                          "${DateTime.now().microsecondsSinceEpoch} $randomHeyss",
                                                      openFilePreview: true,
                                                      albumName: "Toodolees",
                                                      pixelRatio: 3,
                                                      // returnImageUint8List:
                                                      //     true,
                                                    );

                                                    // setState(() {
                                                    //   initialCanvasColor = null;
                                                    //   initialmargin =
                                                    //       EdgeInsets.all(4.0);
                                                    // });

                                                    ScaffoldMessenger.of(
                                                            context)
                                                        .showSnackBar(SnackBar(
                                                            backgroundColor:
                                                                Colors
                                                                    .blue[200],
                                                            content: Row(
                                                              children: [
                                                                Expanded(
                                                                    flex: 1,
                                                                    child: Text(
                                                                        "👍",
                                                                        style: TextStyle(
                                                                            color:
                                                                                Colors.white))),
                                                                Expanded(
                                                                    flex: 5,
                                                                    child: Text(
                                                                      "Share this Will, (Captured)",
                                                                    )),
                                                                // FlatButton(
                                                                //   child: Text("Undo"),
                                                                //   color: Colors.white,
                                                                //   onPressed: () async{
                                                                //     await box.deleteAt(index);
                                                                //     Navigator.pop(context);
                                                                //   },
                                                                // ),
                                                              ],
                                                            )));
                                                  },
                                                  // await DavinciCapture.offStage(
                                                  //     PreviewWidget());

                                                  child: ListTile(
                                                    leading: Icon(
                                                        CarbonIcons.download),
                                                    title: Text("Download"),
                                                  ),
                                                ),

                                                Divider(),
                                                FlatButton(
                                                  onPressed: () async {
                                                    await box.deleteAt(index);
                                                    incrementCount();
                                                    //
                                                    // Locally locally = Locally(
                                                    //   context: context,
                                                    //   payload: 'test',

                                                    //   //pageRoute: MaterialPageRoute(builder: (context) => MorePage(title: "Hey Test Notification", message: "You need to Work for allah...")),
                                                    //   appIcon: 'toodoleeicon',

                                                    //   pageRoute: MaterialPageRoute(
                                                    //       builder: (BuildContext
                                                    //           context) {
                                                    //     return DefaultedApp();
                                                    //   }),
                                                    // );

                                                    // locally.cancel(0);
                                                    player.play(
                                                      'sounds/navigation_transition-left.wav',
                                                      stayAwake: false,
                                                      // mode: PlayerMode.LOW_LATENCY,
                                                    );

                                                    setState(() {});
                                                    Navigator.pop(context);
                                                  },
                                                  child: ListTile(
                                                    leading: Icon(
                                                        CarbonIcons.delete,
                                                        color:
                                                            Colors.redAccent),
                                                    title: Text(
                                                      "Delete",
                                                      style: TextStyle(
                                                          color:
                                                              Colors.redAccent),
                                                    ),
                                                  ),
                                                ),
                                              ],
                                            );
                                          },
                                        );
                                      },
                                      icon: Icon(
                                          CarbonIcons.overflow_menu_horizontal),
                                    ),
                                  ],
                                ),
                              ],
                            ),
                          ),
                        );
                      });
                    }));
          }
        });
  }
}

Running it will be shocking, but it's just giving up the main idea

shaadart commented 3 years ago

What I have done till now: Changed the, imageKey to like this, GlobalKey imageKey; create the Global Key

In the Inititalization: check how i changed key to imgkey,

return Davinci(builder: (imgkey) {
                        ///3. set the widget key to the globalkey
                        this.imageKey = imgkey;
                        return Container(
                          // child: Card(
                          //   shape: RoundedRectangleBorder(
                          //     borderRadius: BorderRadius.circular(0),
                          //   ),
                          //   color: Theme.of(context).canvasColor,
                          child: Card(
                            // elevation: 0.7,
                            child: Wrap(

I am not using imageKey in the key of the .click method, i am using the imgkey

                               await DavinciCapture.click(
                                                      imgkey,
                                                      saveToDevice: false,
                                                      fileName:
                                                          "${DateTime.now().microsecondsSinceEpoch} $randomHeyss",
                                                      openFilePreview: true,
                                                      albumName: "Toodolees",
                                                      pixelRatio: 3,
                                                      // returnImageUint8List:
                                                      //     true,
                                                    );
shaadart commented 3 years ago

But all of these are Giving me good results, But this made a New Issue to be analysed,

The Last one of the All List view Objects, is looking like this.

Screenshot_20210524-132922.jpg