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
5 changes: 5 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.8.1

- Mark enhanced `HtmlWidget.webViewXxx` properties as deprecated (#614)
- Add support for `ListView` and `SliverList` constructor params (#616)

## 0.8.0

- Update for Flutter 2.5 (#587)
Expand Down
2 changes: 1 addition & 1 deletion packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Add this to your app's `pubspec.yaml` file:

```yaml
dependencies:
flutter_widget_from_html_core: ^0.8.0
flutter_widget_from_html_core: ^0.8.1
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion packages/core/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: flutter_widget_from_html_core
version: 0.8.0
version: 0.8.1
description: Flutter package to render html as widgets that focuses on correctness and extensibility.
homepage: https://github.com/daohoangson/flutter_widget_from_html/tree/master/packages/core

Expand Down
6 changes: 6 additions & 0 deletions packages/enhanced/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.8.1

- Mark enhanced `HtmlWidget.webViewXxx` properties as deprecated (#614)
- Add support for flutter_svg@0.23 (#611)
- Add support for `ListView` and `SliverList` constructor params (#616)

## 0.8.0

- Update for Flutter 2.5 (#587)
Expand Down
2 changes: 1 addition & 1 deletion packages/enhanced/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Add this to your app's `pubspec.yaml` file:

```yaml
dependencies:
flutter_widget_from_html: ^0.8.0
flutter_widget_from_html: ^0.8.1
```

### Platform specific configuration
Expand Down
4 changes: 2 additions & 2 deletions packages/enhanced/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: flutter_widget_from_html
version: 0.8.0
version: 0.8.1
description: Flutter package to render html as widgets that supports hyperlink, image, audio, video, iframe and many other tags.
homepage: https://github.com/daohoangson/flutter_widget_from_html

Expand All @@ -10,7 +10,7 @@ environment:
dependencies:
flutter:
sdk: flutter
flutter_widget_from_html_core: ^0.8.0
flutter_widget_from_html_core: ^0.8.1
fwfh_cached_network_image: ^0.7.0+1
fwfh_chewie: ^0.7.0+1
fwfh_just_audio: ^0.6.2+2
Expand Down
16 changes: 16 additions & 0 deletions packages/enhanced/test/config_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,22 @@ void main() {
expect(explained, isNot(contains('└Column(')));
});

testWidgets('renders ListView with ScrollController', (tester) async {
final controller = ScrollController();
final renderMode = ListViewMode(controller: controller);
final html =
'${'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ' * 1000}'
'<a name="bottom">Bottom></a>';
final key = GlobalKey<HtmlWidgetState>();
await explain(tester, renderMode, html: html, key: key);
expect(controller.offset, equals(0));

final htmlWidget = key.currentState!;
htmlWidget.scrollToAnchor('bottom');
await tester.pumpAndSettle();
expect(controller.offset, isNot(equals(0)));
});

testWidgets('renders SliverList', (WidgetTester tester) async {
final explained = await explain(tester, RenderMode.sliverList);
expect(explained, contains('└SliverList('));
Expand Down