From 2c3e5b8bb179322225b0943758074f6d0b0d0844 Mon Sep 17 00:00:00 2001 From: louisehsu Date: Wed, 10 Dec 2025 14:45:17 -0800 Subject: [PATCH 01/18] init --- .../add-to-app/ios/add-flutter-screen.md | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/src/content/add-to-app/ios/add-flutter-screen.md b/src/content/add-to-app/ios/add-flutter-screen.md index 480e3ae166c..84cd03edf57 100644 --- a/src/content/add-to-app/ios/add-flutter-screen.md +++ b/src/content/add-to-app/ios/add-flutter-screen.md @@ -766,6 +766,67 @@ you're free to push data or prepare your Flutter environment in any way you'd like, before presenting the Flutter UI using a `FlutterViewController`. +## Content Sized Views + +On iOS, you can also set your embedded FlutterView to size itself based off it's content. + + + + +```swift +let flutterViewController = FlutterViewController(engine: engine, nibName: nil, bundle: nil) +flutterViewController.isAutoResizable = true +``` + + + + +```objc +_flutterViewController = [[FlutterViewController alloc] init]; +_flutterViewController.autoResizable = true; +``` + + + + +### Restrictions + +Since content sized Flutter views requires your Flutter app to be able to size itself, certain widgets are not supported. + +* Widgets with unbounded size, like a ListView. +* Widgets that defer to a it's child for the size, like LayoutBuilder. + +In practice, this means that quite a few common widgets are not supported, such as +ScaffoldBuilder, CupertinoTimerPicker, or any widget that internally relies on a LayoutBuilder. +When in doubt, you can use a UnconstrainedBox to test the usability of a widget for a content sized view, like below. + +```dart +import 'package:flutter/material.dart'; + +void main() => runApp(MyApp()); + +class MyApp extends StatelessWidget { + @override + Widget build(BuildContext context) + => MaterialApp(home: MyPage()); +} + +class MyPage extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + body: UnconstrainedBox( + // TODO: Edit this line to check if a widget + // can cause problems with content-sized views. + child: Text('This works!'), + // child: Column(children: [Column(children: [Expanded(child: Text('This blows up!'))])]), + // child: ListView(children: [Text('This blows up!')]), + ) + ); + } +} +``` +For a working example, refer to this [sample project][]. [`FlutterEngine`]: {{site.api}}/ios-embedder/interface_flutter_engine.html [`FlutterViewController`]: {{site.api}}/ios-embedder/interface_flutter_view_controller.html @@ -788,3 +849,4 @@ in any way you'd like, before presenting the Flutter UI using a [`Observable`]: https://developer.apple.com/documentation/observation/observable [`NavigationLink`]: https://developer.apple.com/documentation/swiftui/navigationlink [`Observable()`]: https://developer.apple.com/documentation/observation/observable() +[sample project]: https://github.com/flutter/samples/tree/main/add_to_app/ios_content_resizing From 2a7035e789c6063995dd1023f7d8ebf93de55ddb Mon Sep 17 00:00:00 2001 From: Shams Zakhour <44418985+sfshaza2@users.noreply.github.com> Date: Fri, 12 Dec 2025 16:50:33 -0500 Subject: [PATCH 02/18] Apply suggestion from @gemini-code-assist[bot] Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- src/content/add-to-app/ios/add-flutter-screen.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/add-to-app/ios/add-flutter-screen.md b/src/content/add-to-app/ios/add-flutter-screen.md index 84cd03edf57..8de664f689b 100644 --- a/src/content/add-to-app/ios/add-flutter-screen.md +++ b/src/content/add-to-app/ios/add-flutter-screen.md @@ -768,7 +768,7 @@ in any way you'd like, before presenting the Flutter UI using a ## Content Sized Views -On iOS, you can also set your embedded FlutterView to size itself based off it's content. +On iOS, you can also set your embedded FlutterView to size itself based off its content. From 644b41f5fef92c4aec21df68df3dbf63658d9ce9 Mon Sep 17 00:00:00 2001 From: Shams Zakhour <44418985+sfshaza2@users.noreply.github.com> Date: Fri, 12 Dec 2025 16:51:24 -0500 Subject: [PATCH 03/18] Apply suggestion from @gemini-code-assist[bot] Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- src/content/add-to-app/ios/add-flutter-screen.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/add-to-app/ios/add-flutter-screen.md b/src/content/add-to-app/ios/add-flutter-screen.md index 8de664f689b..d0501b961df 100644 --- a/src/content/add-to-app/ios/add-flutter-screen.md +++ b/src/content/add-to-app/ios/add-flutter-screen.md @@ -791,7 +791,7 @@ _flutterViewController.autoResizable = true; ### Restrictions -Since content sized Flutter views requires your Flutter app to be able to size itself, certain widgets are not supported. +Since content sized Flutter views require your Flutter app to be able to size itself, certain widgets are not supported. * Widgets with unbounded size, like a ListView. * Widgets that defer to a it's child for the size, like LayoutBuilder. From 5f9ba4dcf03f63e8a1a7022154a077f73d614a7a Mon Sep 17 00:00:00 2001 From: Shams Zakhour <44418985+sfshaza2@users.noreply.github.com> Date: Fri, 12 Dec 2025 16:51:59 -0500 Subject: [PATCH 04/18] Apply suggestion from @gemini-code-assist[bot] Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- src/content/add-to-app/ios/add-flutter-screen.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/add-to-app/ios/add-flutter-screen.md b/src/content/add-to-app/ios/add-flutter-screen.md index d0501b961df..caed73b3cc7 100644 --- a/src/content/add-to-app/ios/add-flutter-screen.md +++ b/src/content/add-to-app/ios/add-flutter-screen.md @@ -794,7 +794,7 @@ _flutterViewController.autoResizable = true; Since content sized Flutter views require your Flutter app to be able to size itself, certain widgets are not supported. * Widgets with unbounded size, like a ListView. -* Widgets that defer to a it's child for the size, like LayoutBuilder. +* Widgets that defer to its child for the size, like LayoutBuilder. In practice, this means that quite a few common widgets are not supported, such as ScaffoldBuilder, CupertinoTimerPicker, or any widget that internally relies on a LayoutBuilder. From 7731fa3984b6dbb8a5bc629d0d7884db04cf79dd Mon Sep 17 00:00:00 2001 From: LouiseHsu Date: Fri, 12 Dec 2025 15:05:54 -0800 Subject: [PATCH 05/18] Update src/content/add-to-app/ios/add-flutter-screen.md gemini suggestion Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- src/content/add-to-app/ios/add-flutter-screen.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/add-to-app/ios/add-flutter-screen.md b/src/content/add-to-app/ios/add-flutter-screen.md index caed73b3cc7..64b0c048670 100644 --- a/src/content/add-to-app/ios/add-flutter-screen.md +++ b/src/content/add-to-app/ios/add-flutter-screen.md @@ -782,7 +782,7 @@ flutterViewController.isAutoResizable = true ```objc -_flutterViewController = [[FlutterViewController alloc] init]; +_flutterViewController = [[FlutterViewController alloc] initWithEngine:engine nibName:nil bundle:nil]; _flutterViewController.autoResizable = true; ``` From 774ac1d5b13c4c6a41235a869c90a873a2b9d6fa Mon Sep 17 00:00:00 2001 From: louisehsu Date: Fri, 12 Dec 2025 15:08:21 -0800 Subject: [PATCH 06/18] line break, sp --- src/content/add-to-app/ios/add-flutter-screen.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content/add-to-app/ios/add-flutter-screen.md b/src/content/add-to-app/ios/add-flutter-screen.md index 64b0c048670..908151bac6f 100644 --- a/src/content/add-to-app/ios/add-flutter-screen.md +++ b/src/content/add-to-app/ios/add-flutter-screen.md @@ -798,7 +798,8 @@ Since content sized Flutter views require your Flutter app to be able to size it In practice, this means that quite a few common widgets are not supported, such as ScaffoldBuilder, CupertinoTimerPicker, or any widget that internally relies on a LayoutBuilder. -When in doubt, you can use a UnconstrainedBox to test the usability of a widget for a content sized view, like below. +When in doubt, you can use an UnconstrainedBox to test the usability of +a widget for a content sized view, as in the following example: ```dart import 'package:flutter/material.dart'; From a3c32180578139447c6cd4b9c5905ffc03db4475 Mon Sep 17 00:00:00 2001 From: Shams Zakhour <44418985+sfshaza2@users.noreply.github.com> Date: Mon, 15 Dec 2025 13:03:49 -0500 Subject: [PATCH 07/18] Update src/content/add-to-app/ios/add-flutter-screen.md --- src/content/add-to-app/ios/add-flutter-screen.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/add-to-app/ios/add-flutter-screen.md b/src/content/add-to-app/ios/add-flutter-screen.md index 908151bac6f..110fdfd3db0 100644 --- a/src/content/add-to-app/ios/add-flutter-screen.md +++ b/src/content/add-to-app/ios/add-flutter-screen.md @@ -766,9 +766,9 @@ you're free to push data or prepare your Flutter environment in any way you'd like, before presenting the Flutter UI using a `FlutterViewController`. -## Content Sized Views +## Content-sized views -On iOS, you can also set your embedded FlutterView to size itself based off its content. +On iOS, you can also set your embedded `FlutterView` to size itself based off its content. From e79f7840f8cf9fdff1393f69b433710420841332 Mon Sep 17 00:00:00 2001 From: Shams Zakhour <44418985+sfshaza2@users.noreply.github.com> Date: Mon, 15 Dec 2025 13:04:07 -0500 Subject: [PATCH 08/18] Update src/content/add-to-app/ios/add-flutter-screen.md --- src/content/add-to-app/ios/add-flutter-screen.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content/add-to-app/ios/add-flutter-screen.md b/src/content/add-to-app/ios/add-flutter-screen.md index 110fdfd3db0..4cfae888db5 100644 --- a/src/content/add-to-app/ios/add-flutter-screen.md +++ b/src/content/add-to-app/ios/add-flutter-screen.md @@ -791,7 +791,8 @@ _flutterViewController.autoResizable = true; ### Restrictions -Since content sized Flutter views require your Flutter app to be able to size itself, certain widgets are not supported. +Since content-sized Flutter views require your Flutter app to be able to size itself, +some widgets are not supported. * Widgets with unbounded size, like a ListView. * Widgets that defer to its child for the size, like LayoutBuilder. From 2219b4fc520fa8423dbd511cd97f3c8fc0670569 Mon Sep 17 00:00:00 2001 From: Shams Zakhour <44418985+sfshaza2@users.noreply.github.com> Date: Mon, 15 Dec 2025 13:04:37 -0500 Subject: [PATCH 09/18] Update src/content/add-to-app/ios/add-flutter-screen.md --- src/content/add-to-app/ios/add-flutter-screen.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/content/add-to-app/ios/add-flutter-screen.md b/src/content/add-to-app/ios/add-flutter-screen.md index 4cfae888db5..01b9ed477ab 100644 --- a/src/content/add-to-app/ios/add-flutter-screen.md +++ b/src/content/add-to-app/ios/add-flutter-screen.md @@ -797,8 +797,9 @@ some widgets are not supported. * Widgets with unbounded size, like a ListView. * Widgets that defer to its child for the size, like LayoutBuilder. -In practice, this means that quite a few common widgets are not supported, such as -ScaffoldBuilder, CupertinoTimerPicker, or any widget that internally relies on a LayoutBuilder. +In practice, this means that quite a few common widgets are not supported, +such as `ScaffoldBuilder`, `CupertinoTimerPicker`, +or any widget that internally relies on a `LayoutBuilder`. When in doubt, you can use an UnconstrainedBox to test the usability of a widget for a content sized view, as in the following example: From 90c5612150fc13c3be09b3176b3ff9e7c5ca3db5 Mon Sep 17 00:00:00 2001 From: Shams Zakhour <44418985+sfshaza2@users.noreply.github.com> Date: Mon, 15 Dec 2025 13:04:51 -0500 Subject: [PATCH 10/18] Update src/content/add-to-app/ios/add-flutter-screen.md --- src/content/add-to-app/ios/add-flutter-screen.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/add-to-app/ios/add-flutter-screen.md b/src/content/add-to-app/ios/add-flutter-screen.md index 01b9ed477ab..985ab254ae3 100644 --- a/src/content/add-to-app/ios/add-flutter-screen.md +++ b/src/content/add-to-app/ios/add-flutter-screen.md @@ -800,8 +800,8 @@ some widgets are not supported. In practice, this means that quite a few common widgets are not supported, such as `ScaffoldBuilder`, `CupertinoTimerPicker`, or any widget that internally relies on a `LayoutBuilder`. -When in doubt, you can use an UnconstrainedBox to test the usability of -a widget for a content sized view, as in the following example: +When in doubt, you can use an `UnconstrainedBox` to test the usability of +a widget for a content-sized view, as in the following example: ```dart import 'package:flutter/material.dart'; From 1ad101df7cb44d7b0c6a14b78ff07b05096dc78e Mon Sep 17 00:00:00 2001 From: Shams Zakhour <44418985+sfshaza2@users.noreply.github.com> Date: Mon, 15 Dec 2025 13:05:06 -0500 Subject: [PATCH 11/18] Update src/content/add-to-app/ios/add-flutter-screen.md --- src/content/add-to-app/ios/add-flutter-screen.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/add-to-app/ios/add-flutter-screen.md b/src/content/add-to-app/ios/add-flutter-screen.md index 985ab254ae3..f9709e11d6b 100644 --- a/src/content/add-to-app/ios/add-flutter-screen.md +++ b/src/content/add-to-app/ios/add-flutter-screen.md @@ -852,4 +852,4 @@ For a working example, refer to this [sample project][]. [`Observable`]: https://developer.apple.com/documentation/observation/observable [`NavigationLink`]: https://developer.apple.com/documentation/swiftui/navigationlink [`Observable()`]: https://developer.apple.com/documentation/observation/observable() -[sample project]: https://github.com/flutter/samples/tree/main/add_to_app/ios_content_resizing +[sample project]: {{site.repo.samples}}/tree/main/add_to_app/ios_content_resizing From 9eb68614786433560a5f659fa173ffb9c1b88583 Mon Sep 17 00:00:00 2001 From: Shams Zakhour <44418985+sfshaza2@users.noreply.github.com> Date: Mon, 15 Dec 2025 13:05:24 -0500 Subject: [PATCH 12/18] Update src/content/add-to-app/ios/add-flutter-screen.md --- src/content/add-to-app/ios/add-flutter-screen.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/add-to-app/ios/add-flutter-screen.md b/src/content/add-to-app/ios/add-flutter-screen.md index f9709e11d6b..ff834b972f1 100644 --- a/src/content/add-to-app/ios/add-flutter-screen.md +++ b/src/content/add-to-app/ios/add-flutter-screen.md @@ -849,7 +849,7 @@ For a working example, refer to this [sample project][]. [`WidgetsApp`]: {{site.api}}/flutter/widgets/WidgetsApp-class.html [`PlatformDispatcher.defaultRouteName`]: {{site.api}}/flutter/dart-ui/PlatformDispatcher/defaultRouteName.html [Start a FlutterEngine and FlutterViewController section]:/add-to-app/ios/add-flutter-screen/#start-a-flutterengine-and-flutterviewcontroller -[`Observable`]: https://developer.apple.com/documentation/observation/observable -[`NavigationLink`]: https://developer.apple.com/documentation/swiftui/navigationlink -[`Observable()`]: https://developer.apple.com/documentation/observation/observable() +[`Observable`]: {{site.apple-dev}}/documentation/observation/observable +[`NavigationLink`]: {[site.apple-dev}}/documentation/swiftui/navigationlink +[`Observable()`]: {{site.apple.dev}}/documentation/observation/observable() [sample project]: {{site.repo.samples}}/tree/main/add_to_app/ios_content_resizing From 32b6d3d1965929de7e3bd097ffd1c41fcc5b2937 Mon Sep 17 00:00:00 2001 From: Shams Zakhour <44418985+sfshaza2@users.noreply.github.com> Date: Mon, 15 Dec 2025 13:05:32 -0500 Subject: [PATCH 13/18] Update src/content/add-to-app/ios/add-flutter-screen.md --- src/content/add-to-app/ios/add-flutter-screen.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/add-to-app/ios/add-flutter-screen.md b/src/content/add-to-app/ios/add-flutter-screen.md index ff834b972f1..25db5827c0f 100644 --- a/src/content/add-to-app/ios/add-flutter-screen.md +++ b/src/content/add-to-app/ios/add-flutter-screen.md @@ -794,8 +794,8 @@ _flutterViewController.autoResizable = true; Since content-sized Flutter views require your Flutter app to be able to size itself, some widgets are not supported. -* Widgets with unbounded size, like a ListView. -* Widgets that defer to its child for the size, like LayoutBuilder. +* Widgets with unbounded size, like a `ListView`. +* Widgets that defer to its child for the size, like `LayoutBuilder`. In practice, this means that quite a few common widgets are not supported, such as `ScaffoldBuilder`, `CupertinoTimerPicker`, From fe23e20460fc758ca5fc86deade8b106ba8ddadf Mon Sep 17 00:00:00 2001 From: Shams Zakhour <44418985+sfshaza2@users.noreply.github.com> Date: Mon, 15 Dec 2025 13:20:27 -0500 Subject: [PATCH 14/18] Update src/content/add-to-app/ios/add-flutter-screen.md --- src/content/add-to-app/ios/add-flutter-screen.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/add-to-app/ios/add-flutter-screen.md b/src/content/add-to-app/ios/add-flutter-screen.md index 25db5827c0f..6663081a218 100644 --- a/src/content/add-to-app/ios/add-flutter-screen.md +++ b/src/content/add-to-app/ios/add-flutter-screen.md @@ -850,6 +850,6 @@ For a working example, refer to this [sample project][]. [`PlatformDispatcher.defaultRouteName`]: {{site.api}}/flutter/dart-ui/PlatformDispatcher/defaultRouteName.html [Start a FlutterEngine and FlutterViewController section]:/add-to-app/ios/add-flutter-screen/#start-a-flutterengine-and-flutterviewcontroller [`Observable`]: {{site.apple-dev}}/documentation/observation/observable -[`NavigationLink`]: {[site.apple-dev}}/documentation/swiftui/navigationlink +[`NavigationLink`]: {{site.apple-dev}}/documentation/swiftui/navigationlink [`Observable()`]: {{site.apple.dev}}/documentation/observation/observable() [sample project]: {{site.repo.samples}}/tree/main/add_to_app/ios_content_resizing From 12a618b11469d53fc7898660edad277c239217cf Mon Sep 17 00:00:00 2001 From: Shams Zakhour <44418985+sfshaza2@users.noreply.github.com> Date: Mon, 15 Dec 2025 13:20:50 -0500 Subject: [PATCH 15/18] Update src/content/add-to-app/ios/add-flutter-screen.md --- src/content/add-to-app/ios/add-flutter-screen.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/add-to-app/ios/add-flutter-screen.md b/src/content/add-to-app/ios/add-flutter-screen.md index 6663081a218..a0bcdf0e10f 100644 --- a/src/content/add-to-app/ios/add-flutter-screen.md +++ b/src/content/add-to-app/ios/add-flutter-screen.md @@ -851,5 +851,5 @@ For a working example, refer to this [sample project][]. [Start a FlutterEngine and FlutterViewController section]:/add-to-app/ios/add-flutter-screen/#start-a-flutterengine-and-flutterviewcontroller [`Observable`]: {{site.apple-dev}}/documentation/observation/observable [`NavigationLink`]: {{site.apple-dev}}/documentation/swiftui/navigationlink -[`Observable()`]: {{site.apple.dev}}/documentation/observation/observable() +[`Observable()`]: {{site.apple-dev}}/documentation/observation/observable() [sample project]: {{site.repo.samples}}/tree/main/add_to_app/ios_content_resizing From 2776c6b490d91eecddb65a9f1c6ba0e9e76a7c3d Mon Sep 17 00:00:00 2001 From: LouiseHsu Date: Wed, 28 Jan 2026 13:53:50 -0800 Subject: [PATCH 16/18] Update src/content/add-to-app/ios/add-flutter-screen.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com> --- src/content/add-to-app/ios/add-flutter-screen.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/add-to-app/ios/add-flutter-screen.md b/src/content/add-to-app/ios/add-flutter-screen.md index a0bcdf0e10f..2bd12b96111 100644 --- a/src/content/add-to-app/ios/add-flutter-screen.md +++ b/src/content/add-to-app/ios/add-flutter-screen.md @@ -783,7 +783,7 @@ flutterViewController.isAutoResizable = true ```objc _flutterViewController = [[FlutterViewController alloc] initWithEngine:engine nibName:nil bundle:nil]; -_flutterViewController.autoResizable = true; +_flutterViewController.autoResizable = YES; ``` From f2fbece4ad0b6144151813aa49d361797513b5c6 Mon Sep 17 00:00:00 2001 From: Shams Zakhour <44418985+sfshaza2@users.noreply.github.com> Date: Wed, 4 Feb 2026 10:45:31 -0800 Subject: [PATCH 17/18] Update src/content/add-to-app/ios/add-flutter-screen.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com> --- src/content/add-to-app/ios/add-flutter-screen.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/add-to-app/ios/add-flutter-screen.md b/src/content/add-to-app/ios/add-flutter-screen.md index 2bd12b96111..d5e92abafa4 100644 --- a/src/content/add-to-app/ios/add-flutter-screen.md +++ b/src/content/add-to-app/ios/add-flutter-screen.md @@ -792,7 +792,7 @@ _flutterViewController.autoResizable = YES; ### Restrictions Since content-sized Flutter views require your Flutter app to be able to size itself, -some widgets are not supported. +some widgets are not supported: * Widgets with unbounded size, like a `ListView`. * Widgets that defer to its child for the size, like `LayoutBuilder`. From d5fdf2b7914d89c4decdf56b0b420adcb045cc32 Mon Sep 17 00:00:00 2001 From: Shams Zakhour <44418985+sfshaza2@users.noreply.github.com> Date: Wed, 4 Feb 2026 10:45:44 -0800 Subject: [PATCH 18/18] Update src/content/add-to-app/ios/add-flutter-screen.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Loïc Sharma <737941+loic-sharma@users.noreply.github.com> --- src/content/add-to-app/ios/add-flutter-screen.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/content/add-to-app/ios/add-flutter-screen.md b/src/content/add-to-app/ios/add-flutter-screen.md index d5e92abafa4..94bcdd92621 100644 --- a/src/content/add-to-app/ios/add-flutter-screen.md +++ b/src/content/add-to-app/ios/add-flutter-screen.md @@ -791,11 +791,7 @@ _flutterViewController.autoResizable = YES; ### Restrictions -Since content-sized Flutter views require your Flutter app to be able to size itself, -some widgets are not supported: - -* Widgets with unbounded size, like a `ListView`. -* Widgets that defer to its child for the size, like `LayoutBuilder`. +To use this, your root widget must support unbounded constraints. Avoid using widgets that require bounded constraints (like `ListView` or `LayoutBuilder`) at the top of your tree, as they can conflict with the dynamic sizing logic. In practice, this means that quite a few common widgets are not supported, such as `ScaffoldBuilder`, `CupertinoTimerPicker`,