flutter_screenshot 0.1.0 copy "flutter_screenshot: ^0.1.0" to clipboard
flutter_screenshot: ^0.1.0 copied to clipboard

outdated

Flutter screenshot originally from screenshot package by extend more methods.

flutter_screenshot #

Flutter screenshot originally from screenshot package by extend more methods.

Getting Started #

    void _testScreenshot() {
    
    screenshotController.captureAsFile().then((File file){
      print(file);
    });

    screenshotController.captureAsByteData().then((ByteData byteData){
      print(byteData);
    });

    screenshotController.captureAsUint8List().then((Uint8List uint8List){
      print(Uint8List);
    });

    screenshotController.captureAsUiImage().then((res) {
      ui.Image image = res;
      print(image);
    });
  }

    body: Container(
          alignment: Alignment.center,
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              ScreenshotContainer(
                controller: screenshotController,
                child: Text("Sreenshot me now"),
              ),
              
              
              RaisedButton(
                onPressed: () {
                  _testScreenshot();
                },
                child: Text("Pressed me"),
              ),
            ],
          ),
        )
2
likes
40
pub points
62%
popularity

Publisher

verified publishermylekha.app

Flutter screenshot originally from screenshot package by extend more methods.

Repository (GitHub)
View/report issues

License

GPL-3.0 (license)

Dependencies

flutter, path_provider

More

Packages that depend on flutter_screenshot