Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/camera/camera_web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## NEXT
## 0.3.5+1

* Uses `CanvasRenderingContext2D.drawImage` instead of the deprecated `drawImageScaled`.
* Updates minimum supported SDK version to Flutter 3.32/Dart 3.8.

## 0.3.5
Expand Down
2 changes: 1 addition & 1 deletion packages/camera/camera_web/lib/src/camera.dart
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class Camera {
..scale(-1, 1);
}

canvas.context2D.drawImageScaled(
canvas.context2D.drawImage(
videoElement,
0,
0,
Expand Down
2 changes: 1 addition & 1 deletion packages/camera/camera_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: camera_web
description: A Flutter plugin for getting information about and controlling the camera on Web.
repository: https://github.com/flutter/packages/tree/main/packages/camera/camera_web
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
version: 0.3.5
version: 0.3.5+1

environment:
sdk: ^3.8.0
Expand Down
3 changes: 2 additions & 1 deletion packages/cross_file/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## NEXT
## 0.3.5+1

* Replaces README mentions of `dart:html` with `package:web`.
* Updates minimum supported SDK version to Flutter 3.32/Dart 3.8.

## 0.3.5
Expand Down
2 changes: 1 addition & 1 deletion packages/cross_file/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ programmatically.
## Testing

This package supports both web and native platforms. Unit tests need to be split
in two separate suites (because native code cannot use `dart:html`, and web code
in two separate suites (because native code cannot use `package:web`, and web code
cannot use `dart:io`).

When adding new features, it is likely that tests need to be added for both the
Expand Down
2 changes: 1 addition & 1 deletion packages/cross_file/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: cross_file
description: An abstraction to allow working with files across multiple platforms.
repository: https://github.com/flutter/packages/tree/main/packages/cross_file
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+cross_file%22
version: 0.3.5
version: 0.3.5+1

environment:
sdk: ^3.8.0
Expand Down
3 changes: 2 additions & 1 deletion packages/image_picker/image_picker_for_web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## NEXT
## 3.1.1

* Uses `CanvasRenderingContext2D.drawImage` instead of the deprecated `drawImageScaled`.
* Updates minimum supported SDK version to Flutter 3.32/Dart 3.8.

## 3.1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class ImageResizer {
if (maxHeight == null && maxWidth == null) {
context.drawImage(source, 0, 0);
} else {
context.drawImageScaled(
context.drawImage(
source,
0,
0,
Expand Down
2 changes: 1 addition & 1 deletion packages/image_picker/image_picker_for_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: image_picker_for_web
description: Web platform implementation of image_picker
repository: https://github.com/flutter/packages/tree/main/packages/image_picker/image_picker_for_web
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+image_picker%22
version: 3.1.0
version: 3.1.1

environment:
sdk: ^3.8.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'dart:html' as html;
import 'dart:ui_web' as ui_web;

import 'package:flutter/material.dart';
import 'package:web/web.dart' as web;

/// The html.Element that will be rendered underneath the flutter UI.
html.Element htmlElement = html.DivElement()
/// The web.HTMLElement that will be rendered underneath the flutter UI.
final web.HTMLElement htmlElement = web.HTMLDivElement()
..style.width = '100%'
..style.height = '100%'
..style.backgroundColor = '#fabada'
Expand All @@ -17,7 +17,7 @@ html.Element htmlElement = html.DivElement()

// See other examples commented out below...

// html.Element htmlElement = html.VideoElement()
// final web.HTMLElement htmlElement = web.HTMLVideoElement()
// ..style.width = '100%'
// ..style.height = '100%'
// ..style.cursor = 'auto'
Expand All @@ -27,7 +27,7 @@ html.Element htmlElement = html.DivElement()
// ..poster = 'https://peach.blender.org/wp-content/uploads/title_anouncement.jpg?x11217'
// ..controls = true;

// html.Element htmlElement = html.IFrameElement()
// final web.HTMLElement htmlElement = web.HTMLIFrameElement()
// ..width = '100%'
// ..height = '100%'
// ..id = 'background-html-view'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies:
sdk: flutter
pointer_interceptor:
path: ../
web: ^1.0.0

dev_dependencies:
flutter_test:
Expand Down