Code Monkey home page Code Monkey logo

Comments (7)

callmejm avatar callmejm commented on July 21, 2024

same +1

from screenshot.

yogi0823 avatar yogi0823 commented on July 21, 2024

Screenshot(
controller: screenshotController,
child: Component(),
),

wrapp your widget with Screenshot()

from screenshot.

ritheshSalyan avatar ritheshSalyan commented on July 21, 2024

@tehsunnliu how exactly do you need? do you want to take a screenshot of the entire list at once like this? or
screenshot of individual elements on some event like this?

from screenshot.

tehsunnliu avatar tehsunnliu commented on July 21, 2024

Hi, I wanted to capture individual elements in the listview, I wrapped ewach element in the listview with Screenshot widget but it doesn't work. I get same error as mentioned earlier.
Since in my case the listview won't contain many elements I chose not to use listview and created a column with the elements. This way I was able to take screenshots of each element individually.

from screenshot.

BhavyKoshti9spl avatar BhavyKoshti9spl commented on July 21, 2024

created list view like this :

ListView.separated( shrinkWrap: false, itemBuilder: (context, position) => getPost(position), separatorBuilder: (context, position) { return Container( height: 4, color: Colors.transparent, ); }, scrollDirection: Axis.vertical, controller: _scrollController, itemCount: feedList.length, )

and i wrapped each item with screenshot with different controller each time , actually i take one var in list and assigned controller to it if its null so this way every item has its different controller and while i am trying to capture it it gives me error like above

the same way i did this in different page and working file i couldn't find any difference in it ,

in my list there are too many items so i can't put columns there.

from screenshot.

BhavyKoshti9spl avatar BhavyKoshti9spl commented on July 21, 2024

any updates ? @SachinGanesh

from screenshot.

stevendz avatar stevendz commented on July 21, 2024

Had the same problem, I guess the easiest way is replacing the ListView with a SingleChildScrollView and a Column, you will lose the lazy loading but the screenshots will work.

from screenshot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.