Showing
1 changed file
with
6 additions
and
3 deletions
| @@ -260,11 +260,14 @@ class MyAppState extends State<MyApp> { | @@ -260,11 +260,14 @@ class MyAppState extends State<MyApp> { | ||
| 260 | ), | 260 | ), |
| 261 | RaisedButton( | 261 | RaisedButton( |
| 262 | child: const Text('Print Screenshot'), | 262 | child: const Text('Print Screenshot'), |
| 263 | - onPressed: | ||
| 264 | - printingInfo?.canPrint ?? false ? _printScreen : null, | 263 | + onPressed: (printingInfo?.canPrint ?? false) && !kIsWeb |
| 264 | + ? _printScreen | ||
| 265 | + : null, | ||
| 265 | ), | 266 | ), |
| 266 | RaisedButton( | 267 | RaisedButton( |
| 267 | - child: const Text('Save to file'), onPressed: _saveAsFile), | 268 | + child: const Text('Save to file'), |
| 269 | + onPressed: kIsWeb ? null : _saveAsFile, | ||
| 270 | + ), | ||
| 268 | RaisedButton( | 271 | RaisedButton( |
| 269 | child: const Text('Raster to Image'), | 272 | child: const Text('Raster to Image'), |
| 270 | onPressed: | 273 | onPressed: |
-
Please register or login to post a comment