Skip to content

Commit 9af3fc5

Browse files
committed
readme
1 parent 106a063 commit 9af3fc5

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# ios_content_resizing
2+
3+
Embeds an instance of Flutter into an existing iOS app that will dynamically resize itself based off of it's content.
4+
5+
## Description
6+
7+
This sample showcases the integration of a self-resizing Flutter view within a native UIKit environment. The Flutter module features an expanding column of widgets. As items are added, the hosting UIView will automatically adjusts its [intrinsicContentSize](https://developer.apple.com/documentation/uikit/uiview/intrinsiccontentsize) to accommodate the new content size.
8+
9+
## tl;dr
10+
11+
If you're just looking to get up and running quickly, these bash commands will
12+
fetch packages and set up dependencies (note that the above commands assume
13+
you're building for both iOS and Android, with both toolchains installed):
14+
15+
```bash
16+
#!/bin/bash
17+
set -e
18+
19+
cd flutter_module/
20+
flutter pub get
21+
22+
# For iOS builds:
23+
cd ../ios_content_resizing
24+
pod install
25+
open ios_content_resizing.xcworkspace
26+
# Then, click "Run" in Xcode to launch the app into your Simulator or device
27+
```
28+
29+
## Requirements
30+
31+
* Flutter
32+
* iOS
33+
* Xcode
34+
* Cocoapods
35+
36+
## Questions/issues
37+
38+
See [add_to_app/README.md](../README.md) for further help.

0 commit comments

Comments
 (0)