Skip to content

Commit 0a5b3e6

Browse files
authored
Migrates the platform_channel example to material_ui (flutter#190253)
Migrates the platform_channel example to import material_ui. Related to flutter#190093. I ran: * dart fix --apply --code=migrate_design_widgets * dart fix --apply --code=directives_ordering ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [AI contribution guidelines] and understand my responsibilities, or I am not using AI tools. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing.
1 parent e07da45 commit 0a5b3e6

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎dev/bots/check_examples_cross_imports.dart‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,6 @@ class ExamplesCrossImportChecker {
585585
'examples/multiple_windows/lib/app/window_settings_dialog.dart',
586586
'examples/multiple_windows/lib/main.dart',
587587
'examples/multiple_windows/test/multiple_windows_test.dart',
588-
'examples/platform_channel/lib/main.dart',
589588
'examples/platform_channel_swift/lib/main.dart',
590589
'examples/platform_view/lib/main.dart',
591590
'examples/splash/lib/main.dart',

‎examples/platform_channel/lib/main.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
import 'dart:async';
66

7-
import 'package:flutter/material.dart';
87
import 'package:flutter/services.dart';
8+
import 'package:material_ui/material_ui.dart';
99

1010
class PlatformChannel extends StatefulWidget {
1111
const PlatformChannel({super.key});

‎examples/platform_channel/pubspec.yaml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ resolution: workspace
88
dependencies:
99
flutter:
1010
sdk: flutter
11+
material_ui: ^0.0.2
1112

1213

1314
dev_dependencies:
@@ -21,4 +22,4 @@ dev_dependencies:
2122
flutter:
2223
uses-material-design: true
2324

24-
# PUBSPEC CHECKSUM: f9g2jl
25+
# PUBSPEC CHECKSUM: kujv36

0 commit comments

Comments
 (0)