├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── README.zh-CN.md ├── example ├── .gitignore ├── .metadata ├── README.md ├── android │ ├── .gitignore │ ├── app │ │ ├── build.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── me │ │ │ │ └── inrush │ │ │ │ └── example │ │ │ │ └── MainActivity.java │ │ │ └── res │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ └── settings.gradle ├── example.iml ├── example_android.iml ├── ios │ ├── .gitignore │ ├── Flutter │ │ ├── AppFrameworkInfo.plist │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ └── flutter_export_environment.sh │ ├── Runner.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ ├── Runner.xcworkspace │ │ └── contents.xcworkspacedata │ └── Runner │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ └── Icon-App-83.5x83.5@2x.png │ │ └── LaunchImage.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ └── README.md │ │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ │ ├── Info.plist │ │ └── main.m ├── lib │ └── main.dart ├── pubspec.lock └── pubspec.yaml ├── images ├── 2.0x │ ├── icon_notify_done.png │ ├── icon_notify_error.png │ └── icon_notify_info.png └── 3.0x │ ├── icon_notify_done.png │ ├── icon_notify_error.png │ └── icon_notify_info.png ├── lib └── tip_dialog.dart ├── pubspec.lock ├── pubspec.yaml └── tip_dialog.iml /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .dart_tool/ 3 | 4 | .packages 5 | .pub/ 6 | 7 | build/ 8 | ios/.generated/ 9 | ios/Flutter/Generated.xcconfig 10 | ios/Runner/GeneratedPluginRegistrant.* 11 | 12 | .idea 13 | example/.idea -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## [1.0.0] - first release. 2 | 3 | * add release. 4 | 5 | ## [1.0.1] - (MODIFY). 6 | 7 | * fix loading view version bug. 8 | * set default loading duration 9 | 10 | ## [1.1.0] - (FUNCTION CHANGE) 11 | 12 | * add tip dialog global support 13 | 14 | ## [1.1.1] - (MODIFY) 15 | 16 | * fix bugs that occur when using globally 17 | 18 | ## [1.1.2] - (MODIFY) 19 | 20 | * fix infinite call dismiss bug 21 | * fixed an issue where setting the isLoading value is invalid 22 | 23 | ## [2.0.0] 24 | 25 | * set default dismiss duration as 2 seconds 26 | * delete TipDialogContainer parameters 27 | -- show 28 | -- outSideTouchable 29 | -- defaultTip 30 | -- defaultType 31 | * change show method parameter isLoading to isAutoDismiss 32 | * force display mask layer 33 | 34 | ## [2.0.1] 35 | 36 | * fix dismiss bug 37 | * upgrade android build gradle to 5.1.1 38 | 39 | ## [2.1.0] 40 | 41 | * add TipDialogHelper and deprecated TipDialogConnector 42 | 43 | ## [3.0.0] 44 | 45 | * fix performance issues 46 | * easier way to call 47 | 48 | ## [3.1.0] 49 | 50 | * add outside touchable features 51 | 52 | ### [4.0.0] 53 | 54 | * migrating to null safety -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Manuel Martínez-Almeida 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # TipDialog 2 | > 1. Please use 3.0.0 or above version, because earlier versions have serious performance issues 3 | > 2. if example no working, please google questions about Flutter upgrade AndroidX, 4 | > [AndroidX Migration - Flutterblock](https://flutter.dev/docs/development/androidx-migration) 5 | > 3. if run your app, it shows `Error: Cannot run with sound null safety`, please upgrade version to 4.0.0 6 | > [Reference](https://dart.dev/null-safety/migration-guide) 7 | 8 | [中文版](https://github.com/inRush/TipDialog/blob/master/README.zh-CN.md) 9 | 10 | A Flutter Tip Dialog 11 | 12 | | Loading Type Dialog | Success Tye Dialog | Fail Type Dialog | 13 | | --- | --- | --- | 14 | | ![Loading](https://raw.githubusercontent.com/inRush/Resources/master/images/tip-dialog/loading.jpeg) | ![Success](https://raw.githubusercontent.com/inRush/Resources/master/images/tip-dialog/success.jpeg)| ![Fail](https://raw.githubusercontent.com/inRush/Resources/master/images/tip-dialog/failed.jpeg) | 15 | 16 | 17 | | Info Type Dialog | Only Icon Dialog | Onl Text Dialog | 18 | | --- | --- | --- | 19 | | ![Info](https://raw.githubusercontent.com/inRush/Resources/master/images/tip-dialog/info.jpeg)| ![OnlyIcon](https://raw.githubusercontent.com/inRush/Resources/master/images/tip-dialog/only-icon.jpeg)| ![OnlyText](https://raw.githubusercontent.com/inRush/Resources/master/images/tip-dialog/only-text.jpeg)| 20 | 21 | 22 | | Custom Icon Dialog | Custom Body Dialog | 23 | | --- | --- | 24 | | ![CustomIcon](https://raw.githubusercontent.com/inRush/Resources/master/images/tip-dialog/custom-icon.jpeg)| ![CustomBody](https://raw.githubusercontent.com/inRush/Resources/master/images/tip-dialog/custom-body.jpeg)| 25 | 26 | 27 | ## 1. Depend on it 28 | Add this to your package's pubspec.yaml file: 29 | 30 | ``` dart 31 | dependencies: 32 | tip_dialog: ^4.0.0 33 | ``` 34 | ## 2. Install it 35 | You can install packages from the command line: 36 | with Flutter: 37 | 38 | ``` 39 | $ flutter packages get 40 | ``` 41 | ## 3. Import it 42 | Now in your Dart code, you can use: 43 | 44 | ```dart 45 | import 'package:tip_dialog/tip_dialog.dart'; 46 | ``` 47 | ## 4. Use 48 | #### Available attributes 49 | 50 | ``` 51 | /// [TipDialogContainer] 52 | @required this.child, 53 | /// automatically disappear time 54 | this.duration: const Duration(seconds: 3), 55 | /// mask layer alpha 56 | this.maskAlpha: 0.3 57 | // outside touchable, default false 58 | // if true and onOutsideTouch not set, when use TipDialogHelper.loading(), you can touch mask layer to dismiss 59 | // if true and onOutsideTouch set, when touching the mask layer, onOutsideTouch will be called. 60 | this.outsideTouchable: false 61 | // outside touch callback {@link OutsideTouchCallback} 62 | this.onOutsideTouch 63 | ``` 64 | 65 | #### Global Use 66 | ```dart 67 | /// Use [TipDialogContainer] globally 68 | /// This widget can be globally supported 69 | void main() => runApp(new MyApp()); 70 | class MyApp extends StatelessWidget { 71 | @override 72 | Widget build(BuildContext context) { 73 | return new MaterialApp( 74 | title: 'TipDialog Demo', 75 | theme: new ThemeData(), 76 | home: Stack( 77 | children: [ 78 | MyHomePage(title: 'TipDialog Demo Home Page'), 79 | // add [TipDialogContainer] widget here 80 | TipDialogContainer(duration: const Duration(seconds: 2)) 81 | ], 82 | ), 83 | ); 84 | } 85 | } 86 | /// use TipDialogHelper to show or dismiss tip 87 | Widget build(BuildContext context) { 88 | return new Scaffold( 89 | appBar: new AppBar( 90 | title: new Text(widget.title), 91 | elevation: 0.5, 92 | ), 93 | body: new ListView(children: [ 94 | _buildItem("Loading Type Tip Dialog", () async { 95 | TipDialogHelper.loading("Loading"); 96 | await new Future.delayed(new Duration(seconds: 5)); 97 | TipDialogHelper.dismiss(); 98 | }), 99 | new Divider(), 100 | _buildItem("Success Type Tip Dialog", () async { 101 | TipDialogHelper.success("Loaded Successfully"); 102 | }), 103 | new Divider(), 104 | _buildItem("Only text Tip Dialog", () async { 105 | TipDialogHelper.show(new TipDialog( 106 | type: TipDialogType.NOTHING, 107 | tip: "Do Not Repeat", 108 | )); 109 | }), 110 | new Divider(), 111 | _buildItem("Custom Icon Tip Dialog", () async { 112 | TipDialogHelper.show(new TipDialog.customIcon( 113 | icon: new Icon( 114 | Icons.file_download, 115 | color: Colors.white, 116 | size: 30.0, 117 | textDirection: TextDirection.ltr, 118 | ), 119 | tip: "Download", 120 | )); 121 | }), 122 | new Divider(), 123 | _buildItem("Custom Body Tip Dialog", () async { 124 | TipDialogHelper.show(new TipDialog.builder( 125 | bodyBuilder: (context) { 126 | return new Container( 127 | width: 120.0, 128 | height: 90.0, 129 | alignment: Alignment.center, 130 | child: new Text( 131 | "Custom", 132 | style: new TextStyle(color: Colors.white), 133 | /// if TipDialogContainer are outside of MaterialApp, 134 | /// here is a must to set 135 | textDirection: TextDirection.ltr, 136 | ), 137 | ); 138 | }, 139 | color: Colors.blue.withAlpha(150), 140 | )); 141 | }), 142 | new Divider(), 143 | ])); 144 | } 145 | ``` 146 | 147 | >Use a custom widget when using [TipDialogContainer] globally, there may be appear some unexpected errors. 148 | >such as Text or Icon, will appear similar to the following error. 149 | 150 | ***No Directionality widget found.*** 151 | 152 | >Just set TextDirection just fine. See the custom Widget in the example for details. 153 | 154 | ## 5. Default Dialog Type 155 | ``` 156 | enum TipDialogType { NOTHING, LOADING, SUCCESS, FAIL, INFO } 157 | 158 | NOTHING: no icon 159 | LOADING: have a loading icon 160 | SUCCESS: have a success icon 161 | FAIL: have a fail icon 162 | INFO: have a info icon 163 | CUSTOM: custom tip dialog type, just a sign, do nothing 164 | ``` 165 | ## 6. TipDialogHelper Method 166 | 167 | ```dart 168 | /// tipDialog: Need to display the widget 169 | /// 170 | /// isAutoDismiss: decide whether to disappear automatically, default is true 171 | /// if true, the dialog will not automatically disappear 172 | /// otherwise, the dialog will automatically disappear after the [Duration] set by [TipDialogContainer] 173 | void show(Widget tipDialog, {bool isAutoDismiss: true}); 174 | 175 | /// dismiss dialog 176 | void dismiss(); 177 | 178 | /// show info dialog 179 | void info(String tip); 180 | /// show fail dialog 181 | void fail(String errMsg); 182 | /// show success dialog 183 | void success(String success); 184 | /// show loading dialog 185 | void loading(String loadingTip); 186 | ``` 187 | 188 | >See the example directory for more details. 189 | 190 | 191 | ## 7. Change log 192 | 193 | ### [4.0.0] 194 | 195 | * migrating to null safety 196 | 197 | ### [3.1.0] 198 | 199 | * add outside touchable features 200 | 201 | ### [3.0.0] 202 | 203 | * fix performance issues 204 | * easier way to call 205 | 206 | ### [2.1.0] 207 | 208 | * add TipDialogHelper and deprecated TipDialogConnector 209 | 210 | ### [2.0.1] 211 | 212 | * fix dismiss bug 213 | * upgrade android build gradle to 5.1.1 214 | 215 | ### [2.0.0] 216 | 217 | * set default auto dismiss duration as 2 seconds 218 | * delete [TipDialogContainer] Partial parameters 219 | -- show 220 | -- outSideTouchable 221 | -- defaultTip 222 | -- defaultType 223 | * change show method parameter isLoading to isAutoDismiss 224 | * force display mask layer 225 | 226 | ### [1.1.2] - (MODIFY) 227 | 228 | * fix infinite call dismiss bug 229 | * fixed an issue where setting the isLoading value is invalid 230 | 231 | ### [1.1.1] - (MODIFY) 232 | 233 | * fix bugs that occur when using globally 234 | 235 | ### [1.1.0] - (FUNCTION CHANGE) 236 | 237 | * add tip dialog global support 238 | 239 | ### [1.0.1] - (MODIFY). 240 | 241 | * fix loading view version bug. 242 | * set default loading duration 243 | 244 | ### [1.0.0] - first release. 245 | 246 | * add release. 247 | -------------------------------------------------------------------------------- /README.zh-CN.md: -------------------------------------------------------------------------------- 1 | # TipDialog 2 | > 1. 请使用3.0.0或更高版本,因为早期版本存在严重的性能问题 3 | > 2. 如果示例不能运行,请查询有关Flutter升级AndroidX的问题, 4 | > [AndroidX Migration - Flutterblock](https://flutter.dev/docs/development/androidx-migration) 5 | > 3. 如果在运行您的应用时,提示`Error: Cannot run with sound null safety`,请升级版本到4.0.0 6 | > [参考](https://dart.dev/null-safety/migration-guide) 7 | 8 | Flutter 提示框 9 | 10 | | 加载提示框 | 成功提示框 | 失败提示框 | 11 | | --- | --- | --- | 12 | | ![加载提示框](https://raw.githubusercontent.com/inRush/Resources/master/images/tip-dialog/loading.jpeg) | ![成功提示框](https://raw.githubusercontent.com/inRush/Resources/master/images/tip-dialog/success.jpeg)| ![失败提示框](https://raw.githubusercontent.com/inRush/Resources/master/images/tip-dialog/failed.jpeg) | 13 | 14 | 15 | | 信息提示框 | 只有图标的提示框 | 只有文本的提示框 | 16 | | --- | --- | --- | 17 | | ![信息提示框](https://raw.githubusercontent.com/inRush/Resources/master/images/tip-dialog/info.jpeg)| ![只有图标的提示框](https://raw.githubusercontent.com/inRush/Resources/master/images/tip-dialog/only-icon.jpeg)| ![只有文本的提示框](https://raw.githubusercontent.com/inRush/Resources/master/images/tip-dialog/only-text.jpeg)| 18 | 19 | 20 | | 自定义图标提示框 | 自定义提示框 | 21 | | --- | --- | 22 | | ![自定义图标提示框](https://raw.githubusercontent.com/inRush/Resources/master/images/tip-dialog/custom-icon.jpeg)| ![自定义提示框](https://raw.githubusercontent.com/inRush/Resources/master/images/tip-dialog/custom-body.jpeg)| 23 | 24 | 25 | 26 | ## 1. 依赖 27 | 添加下面的内容到 pubspec.yaml 文件中: 28 | 29 | ``` dart 30 | dependencies: 31 | tip_dialog: ^4.0.0 32 | ``` 33 | 34 | ## 2. 安装 35 | 在命令行中使用以下的Flutter命令获取依赖包 36 | ``` 37 | $ flutter packages get 38 | ``` 39 | 40 | ## 3. 导入 41 | 42 | ```dart 43 | import 'package:tip_dialog/tip_dialog.dart'; 44 | ``` 45 | ## 4. 使用 46 | #### 可用的属性 47 | 48 | ``` 49 | /// [ TipDialogContainer ] 50 | @required this.child, 51 | /// 自动消失的时间 52 | this.duration: const Duration(seconds: 3), 53 | /// 遮罩层不透明度 54 | this.maskAlpha: 0.3 55 | // tip dialog 外部是否可以点击(即遮罩层) 56 | // 如果设置为true并且onOutsideTouch没有设置,那么当使用TipDialogHelper.loading()的时候,你可以点击遮罩层关闭dialog 57 | // 如果设置为true并且onOutsideTouch也设置了,那么当触摸遮罩层的时候,会调用onOutsideTouch方法 58 | this.outsideTouchable: false 59 | // 遮罩层点击回调 {@link OutsideTouchCallback} 60 | this.onOutsideTouch 61 | ``` 62 | 63 | #### 全局使用 64 | ```dart 65 | void main() => runApp(new MyApp()); 66 | class MyApp extends StatelessWidget { 67 | @override 68 | Widget build(BuildContext context) { 69 | return new MaterialApp( 70 | title: 'TipDialog Demo', 71 | theme: new ThemeData(), 72 | home: Stack( 73 | children: [ 74 | MyHomePage(title: 'TipDialog Demo Home Page'), 75 | // 在这里添加 [TipDialogContainer] 76 | TipDialogContainer(duration: const Duration(seconds: 2)) 77 | ], 78 | ), 79 | ); 80 | } 81 | } 82 | /// 使用 [TipDialogHelper] 去显示和关闭提示 83 | Widget build(BuildContext context) { 84 | return new Scaffold( 85 | appBar: new AppBar( 86 | title: new Text(widget.title), 87 | elevation: 0.5, 88 | ), 89 | body: new ListView(children: [ 90 | _buildItem("Loading Type Tip Dialog", () async { 91 | TipDialogHelper.loading("Loading"); 92 | await new Future.delayed(new Duration(seconds: 5)); 93 | TipDialogHelper.dismiss(); 94 | }), 95 | new Divider(), 96 | _buildItem("Success Type Tip Dialog", () async { 97 | TipDialogHelper.success("Loaded Successfully"); 98 | }), 99 | new Divider(), 100 | _buildItem("Only text Tip Dialog", () async { 101 | TipDialogHelper.show(new TipDialog( 102 | type: TipDialogType.NOTHING, 103 | tip: "Do Not Repeat", 104 | )); 105 | }), 106 | new Divider(), 107 | _buildItem("Custom Icon Tip Dialog", () async { 108 | TipDialogHelper.show(new TipDialog.customIcon( 109 | icon: new Icon( 110 | Icons.file_download, 111 | color: Colors.white, 112 | size: 30.0, 113 | textDirection: TextDirection.ltr, 114 | ), 115 | tip: "Download", 116 | )); 117 | }), 118 | new Divider(), 119 | _buildItem("Custom Body Tip Dialog", () async { 120 | TipDialogHelper.show(new TipDialog.builder( 121 | bodyBuilder: (context) { 122 | return new Container( 123 | width: 120.0, 124 | height: 90.0, 125 | alignment: Alignment.center, 126 | child: new Text( 127 | "Custom", 128 | style: new TextStyle(color: Colors.white), 129 | /// if TipDialogContainer are outside of MaterialApp, 130 | /// here is a must to set 131 | textDirection: TextDirection.ltr, 132 | ), 133 | ); 134 | }, 135 | color: Colors.blue.withAlpha(150), 136 | )); 137 | }), 138 | new Divider(), 139 | ])); 140 | } 141 | ``` 142 | >在全局使用自定义控件的使用,可能会出现一些错误 143 | >比如使用Text或者Icon的时候,会出现下面的错误. 144 | 145 | ***No Directionality widget found.*** 146 | 147 | >这个错误只要在Text或者Icon上设置TextDirection的属性就可以了,具体的细节请到示例中查看. 148 | 149 | ## 5. 默认可用提示框类型 150 | ``` 151 | enum TipDialogType { NOTHING, LOADING, SUCCESS, FAIL, INFO } 152 | 153 | NOTHING: no icon 154 | LOADING: have a loading icon 155 | SUCCESS: have a success icon 156 | FAIL: have a fail icon 157 | INFO: have a info icon 158 | CUSTOM: custom tip dialog type, just a sign, do nothing 159 | ``` 160 | ## 6. TipDialogHelper 可用方法 161 | 162 | ```dart 163 | /// tipDialog: 需要进行显示的提示框 164 | /// 165 | /// isAutoDismiss: 这个变量决定了显示出来的提示框是否会自动消失,默认为 true 166 | /// 这个值为false的时候,显示出来的提示框不会自动消失,除非调用dismiss方法 167 | /// 如果这个值是true,那么提示框会在一定时间内消失,这个值是在新建[TipDialogContainer]的时候设置的. 168 | void show(Widget tipDialog, {bool isAutoDismiss: true}); 169 | 170 | /// 隐藏提示框 171 | void dismiss(); 172 | /// 显示失败提示框 173 | void fail(String errMsg); 174 | /// 显示成功提示框 175 | void success(String success); 176 | /// 显示加载提示框 177 | void loading(String loadingTip); 178 | ``` 179 | 180 | >更多细节请参考示例中的代码. 181 | 182 | ## 7. 版本记录 183 | 184 | ### [4.0.0] 185 | 186 | * 升级到空安全 187 | 188 | ## [3.1.0] 189 | 190 | * 添加遮罩层点击功能 191 | 192 | ### [3.0.0] 193 | 194 | * 修复性能问题 195 | * 更加易用 196 | 197 | ## [2.1.0] 198 | 199 | * 添加TipDialogHelper,弃用TipDialogConnector 200 | 201 | ## [2.0.1] 202 | 203 | * 修复dismiss逻辑Bug 204 | * 升级 android build gradle 到 5.1.1 205 | 206 | ### [2.0.0] 207 | 208 | * 设置默认自动消失时间为2s 209 | * 删除 [TipDialogContainer] 部分参数 210 | -- show 211 | -- outSideTouchable 212 | -- defaultTip 213 | -- defaultType 214 | * 改变show方法的isLoading为isAutoDismiss 215 | * 强制显示遮罩层 216 | 217 | ### [1.1.2] - (MODIFY) 218 | 219 | * 修复无限调用 dismiss 方法的 bug 220 | * 修复 isLoading 无效的问题 221 | 222 | ### [1.1.1] - (MODIFY) 223 | 224 | * 修复全局使用时出现的错误 225 | 226 | ### [1.1.0] - (FUNCTION CHANGE) 227 | 228 | * 添加全局支持 229 | 230 | ### [1.0.1] - (MODIFY). 231 | 232 | * 修复 loading view 的版本 bug 233 | * 设置默认loading时间 234 | 235 | ### [1.0.0] - first release. 236 | 237 | * 释放版本 238 | -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .dart_tool/ 3 | 4 | .packages 5 | .pub/ 6 | 7 | build/ 8 | 9 | .flutter-plugins 10 | -------------------------------------------------------------------------------- /example/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: c7ea3ca377e909469c68f2ab878a5bc53d3cf66b 8 | channel: beta 9 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- 1 | # example 2 | 3 | A new Flutter application. 4 | 5 | ## Getting Started 6 | 7 | For help getting started with Flutter, view our online 8 | [documentation](https://flutter.io/). 9 | -------------------------------------------------------------------------------- /example/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | *.class 3 | .gradle 4 | /local.properties 5 | /.idea/workspace.xml 6 | /.idea/libraries 7 | .DS_Store 8 | /build 9 | /captures 10 | GeneratedPluginRegistrant.java 11 | -------------------------------------------------------------------------------- /example/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | apply plugin: 'com.android.application' 15 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 16 | 17 | android { 18 | compileSdkVersion 28 19 | 20 | lintOptions { 21 | disable 'InvalidPackage' 22 | } 23 | 24 | defaultConfig { 25 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 26 | applicationId "me.inrush.example" 27 | minSdkVersion 16 28 | targetSdkVersion 28 29 | versionCode 1 30 | versionName "1.0" 31 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 32 | } 33 | 34 | buildTypes { 35 | release { 36 | // TODO: Add your own signing config for the release build. 37 | // Signing with the debug keys for now, so `flutter run --release` works. 38 | signingConfig signingConfigs.debug 39 | } 40 | } 41 | } 42 | 43 | flutter { 44 | source '../..' 45 | } 46 | 47 | dependencies { 48 | testImplementation 'junit:junit:4.12' 49 | androidTestImplementation 'com.android.support.test:runner:1.0.1' 50 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 51 | } 52 | -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 15 | 19 | 26 | 30 | 33 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/me/inrush/example/MainActivity.java: -------------------------------------------------------------------------------- 1 | package me.inrush.example; 2 | 3 | import io.flutter.embedding.android.FlutterActivity; 4 | 5 | public class MainActivity extends FlutterActivity { 6 | } 7 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /example/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.4.1' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /example/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip 7 | -------------------------------------------------------------------------------- /example/android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # Attempt to set APP_HOME 46 | # Resolve links: $0 may be a link 47 | PRG="$0" 48 | # Need this for relative symlinks. 49 | while [ -h "$PRG" ] ; do 50 | ls=`ls -ld "$PRG"` 51 | link=`expr "$ls" : '.*-> \(.*\)$'` 52 | if expr "$link" : '/.*' > /dev/null; then 53 | PRG="$link" 54 | else 55 | PRG=`dirname "$PRG"`"/$link" 56 | fi 57 | done 58 | SAVED="`pwd`" 59 | cd "`dirname \"$PRG\"`/" >/dev/null 60 | APP_HOME="`pwd -P`" 61 | cd "$SAVED" >/dev/null 62 | 63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 64 | 65 | # Determine the Java command to use to start the JVM. 66 | if [ -n "$JAVA_HOME" ] ; then 67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 68 | # IBM's JDK on AIX uses strange locations for the executables 69 | JAVACMD="$JAVA_HOME/jre/sh/java" 70 | else 71 | JAVACMD="$JAVA_HOME/bin/java" 72 | fi 73 | if [ ! -x "$JAVACMD" ] ; then 74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 75 | 76 | Please set the JAVA_HOME variable in your environment to match the 77 | location of your Java installation." 78 | fi 79 | else 80 | JAVACMD="java" 81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 82 | 83 | Please set the JAVA_HOME variable in your environment to match the 84 | location of your Java installation." 85 | fi 86 | 87 | # Increase the maximum file descriptors if we can. 88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 89 | MAX_FD_LIMIT=`ulimit -H -n` 90 | if [ $? -eq 0 ] ; then 91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 92 | MAX_FD="$MAX_FD_LIMIT" 93 | fi 94 | ulimit -n $MAX_FD 95 | if [ $? -ne 0 ] ; then 96 | warn "Could not set maximum file descriptor limit: $MAX_FD" 97 | fi 98 | else 99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 100 | fi 101 | fi 102 | 103 | # For Darwin, add options to specify how the application appears in the dock 104 | if $darwin; then 105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 106 | fi 107 | 108 | # For Cygwin, switch paths to Windows format before running java 109 | if $cygwin ; then 110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 112 | JAVACMD=`cygpath --unix "$JAVACMD"` 113 | 114 | # We build the pattern for arguments to be converted via cygpath 115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 116 | SEP="" 117 | for dir in $ROOTDIRSRAW ; do 118 | ROOTDIRS="$ROOTDIRS$SEP$dir" 119 | SEP="|" 120 | done 121 | OURCYGPATTERN="(^($ROOTDIRS))" 122 | # Add a user-defined pattern to the cygpath arguments 123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 125 | fi 126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 127 | i=0 128 | for arg in "$@" ; do 129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 131 | 132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 134 | else 135 | eval `echo args$i`="\"$arg\"" 136 | fi 137 | i=$((i+1)) 138 | done 139 | case $i in 140 | (0) set -- ;; 141 | (1) set -- "$args0" ;; 142 | (2) set -- "$args0" "$args1" ;; 143 | (3) set -- "$args0" "$args1" "$args2" ;; 144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 150 | esac 151 | fi 152 | 153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 154 | function splitJvmOpts() { 155 | JVM_OPTS=("$@") 156 | } 157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 159 | 160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 161 | -------------------------------------------------------------------------------- /example/android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /example/example.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /example/example_android.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /example/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/app.flx 37 | /Flutter/app.zip 38 | /Flutter/flutter_assets/ 39 | /Flutter/App.framework 40 | /Flutter/Flutter.framework 41 | /Flutter/Generated.xcconfig 42 | /ServiceDefinitions.json 43 | 44 | Pods/ 45 | .symlinks/ 46 | -------------------------------------------------------------------------------- /example/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /example/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /example/ios/Flutter/flutter_export_environment.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # This is a generated file; do not edit or check into version control. 3 | export "FLUTTER_ROOT=D:\WorkSpace\Flutter\sdk" 4 | export "FLUTTER_APPLICATION_PATH=D:\WorkSpace\Flutter\projects\TipDialog\example" 5 | export "COCOAPODS_PARALLEL_CODE_SIGN=true" 6 | export "FLUTTER_TARGET=lib\main.dart" 7 | export "FLUTTER_BUILD_DIR=build" 8 | export "FLUTTER_BUILD_NAME=1.0.0" 9 | export "FLUTTER_BUILD_NUMBER=1" 10 | export "DART_OBFUSCATION=false" 11 | export "TRACK_WIDGET_CREATION=false" 12 | export "TREE_SHAKE_ICONS=false" 13 | export "PACKAGE_CONFIG=.packages" 14 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 14 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 18 | 9740EEB51CF90195004384FC /* Generated.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB31CF90195004384FC /* Generated.xcconfig */; }; 19 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 20 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 21 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 22 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 23 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 24 | /* End PBXBuildFile section */ 25 | 26 | /* Begin PBXCopyFilesBuildPhase section */ 27 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 28 | isa = PBXCopyFilesBuildPhase; 29 | buildActionMask = 2147483647; 30 | dstPath = ""; 31 | dstSubfolderSpec = 10; 32 | files = ( 33 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 34 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 35 | ); 36 | name = "Embed Frameworks"; 37 | runOnlyForDeploymentPostprocessing = 0; 38 | }; 39 | /* End PBXCopyFilesBuildPhase section */ 40 | 41 | /* Begin PBXFileReference section */ 42 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 43 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 44 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; }; 45 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 46 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 47 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 48 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 49 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 50 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 51 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 52 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 53 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 55 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 56 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 57 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 58 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 59 | /* End PBXFileReference section */ 60 | 61 | /* Begin PBXFrameworksBuildPhase section */ 62 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 63 | isa = PBXFrameworksBuildPhase; 64 | buildActionMask = 2147483647; 65 | files = ( 66 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 67 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | /* End PBXFrameworksBuildPhase section */ 72 | 73 | /* Begin PBXGroup section */ 74 | 9740EEB11CF90186004384FC /* Flutter */ = { 75 | isa = PBXGroup; 76 | children = ( 77 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */, 78 | 3B80C3931E831B6300D905FE /* App.framework */, 79 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 80 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 81 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 82 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 83 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 84 | ); 85 | name = Flutter; 86 | sourceTree = ""; 87 | }; 88 | 97C146E51CF9000F007C117D = { 89 | isa = PBXGroup; 90 | children = ( 91 | 9740EEB11CF90186004384FC /* Flutter */, 92 | 97C146F01CF9000F007C117D /* Runner */, 93 | 97C146EF1CF9000F007C117D /* Products */, 94 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */, 95 | ); 96 | sourceTree = ""; 97 | }; 98 | 97C146EF1CF9000F007C117D /* Products */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 97C146EE1CF9000F007C117D /* Runner.app */, 102 | ); 103 | name = Products; 104 | sourceTree = ""; 105 | }; 106 | 97C146F01CF9000F007C117D /* Runner */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 110 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 111 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 112 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 113 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 114 | 97C147021CF9000F007C117D /* Info.plist */, 115 | 97C146F11CF9000F007C117D /* Supporting Files */, 116 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 117 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 118 | ); 119 | path = Runner; 120 | sourceTree = ""; 121 | }; 122 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | 97C146F21CF9000F007C117D /* main.m */, 126 | ); 127 | name = "Supporting Files"; 128 | sourceTree = ""; 129 | }; 130 | /* End PBXGroup section */ 131 | 132 | /* Begin PBXNativeTarget section */ 133 | 97C146ED1CF9000F007C117D /* Runner */ = { 134 | isa = PBXNativeTarget; 135 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 136 | buildPhases = ( 137 | 9740EEB61CF901F6004384FC /* Run Script */, 138 | 97C146EA1CF9000F007C117D /* Sources */, 139 | 97C146EB1CF9000F007C117D /* Frameworks */, 140 | 97C146EC1CF9000F007C117D /* Resources */, 141 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 142 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 143 | ); 144 | buildRules = ( 145 | ); 146 | dependencies = ( 147 | ); 148 | name = Runner; 149 | productName = Runner; 150 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 151 | productType = "com.apple.product-type.application"; 152 | }; 153 | /* End PBXNativeTarget section */ 154 | 155 | /* Begin PBXProject section */ 156 | 97C146E61CF9000F007C117D /* Project object */ = { 157 | isa = PBXProject; 158 | attributes = { 159 | LastUpgradeCheck = 0910; 160 | ORGANIZATIONNAME = "The Chromium Authors"; 161 | TargetAttributes = { 162 | 97C146ED1CF9000F007C117D = { 163 | CreatedOnToolsVersion = 7.3.1; 164 | }; 165 | }; 166 | }; 167 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 168 | compatibilityVersion = "Xcode 3.2"; 169 | developmentRegion = English; 170 | hasScannedForEncodings = 0; 171 | knownRegions = ( 172 | en, 173 | Base, 174 | ); 175 | mainGroup = 97C146E51CF9000F007C117D; 176 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 177 | projectDirPath = ""; 178 | projectRoot = ""; 179 | targets = ( 180 | 97C146ED1CF9000F007C117D /* Runner */, 181 | ); 182 | }; 183 | /* End PBXProject section */ 184 | 185 | /* Begin PBXResourcesBuildPhase section */ 186 | 97C146EC1CF9000F007C117D /* Resources */ = { 187 | isa = PBXResourcesBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 191 | 9740EEB51CF90195004384FC /* Generated.xcconfig in Resources */, 192 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 193 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 194 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 195 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */, 196 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 197 | ); 198 | runOnlyForDeploymentPostprocessing = 0; 199 | }; 200 | /* End PBXResourcesBuildPhase section */ 201 | 202 | /* Begin PBXShellScriptBuildPhase section */ 203 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 204 | isa = PBXShellScriptBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | ); 208 | inputPaths = ( 209 | ); 210 | name = "Thin Binary"; 211 | outputPaths = ( 212 | ); 213 | runOnlyForDeploymentPostprocessing = 0; 214 | shellPath = /bin/sh; 215 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 216 | }; 217 | 9740EEB61CF901F6004384FC /* Run Script */ = { 218 | isa = PBXShellScriptBuildPhase; 219 | buildActionMask = 2147483647; 220 | files = ( 221 | ); 222 | inputPaths = ( 223 | ); 224 | name = "Run Script"; 225 | outputPaths = ( 226 | ); 227 | runOnlyForDeploymentPostprocessing = 0; 228 | shellPath = /bin/sh; 229 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 230 | }; 231 | /* End PBXShellScriptBuildPhase section */ 232 | 233 | /* Begin PBXSourcesBuildPhase section */ 234 | 97C146EA1CF9000F007C117D /* Sources */ = { 235 | isa = PBXSourcesBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 239 | 97C146F31CF9000F007C117D /* main.m in Sources */, 240 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 241 | ); 242 | runOnlyForDeploymentPostprocessing = 0; 243 | }; 244 | /* End PBXSourcesBuildPhase section */ 245 | 246 | /* Begin PBXVariantGroup section */ 247 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 248 | isa = PBXVariantGroup; 249 | children = ( 250 | 97C146FB1CF9000F007C117D /* Base */, 251 | ); 252 | name = Main.storyboard; 253 | sourceTree = ""; 254 | }; 255 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 256 | isa = PBXVariantGroup; 257 | children = ( 258 | 97C147001CF9000F007C117D /* Base */, 259 | ); 260 | name = LaunchScreen.storyboard; 261 | sourceTree = ""; 262 | }; 263 | /* End PBXVariantGroup section */ 264 | 265 | /* Begin XCBuildConfiguration section */ 266 | 97C147031CF9000F007C117D /* Debug */ = { 267 | isa = XCBuildConfiguration; 268 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 269 | buildSettings = { 270 | ALWAYS_SEARCH_USER_PATHS = NO; 271 | CLANG_ANALYZER_NONNULL = YES; 272 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 273 | CLANG_CXX_LIBRARY = "libc++"; 274 | CLANG_ENABLE_MODULES = YES; 275 | CLANG_ENABLE_OBJC_ARC = YES; 276 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 277 | CLANG_WARN_BOOL_CONVERSION = YES; 278 | CLANG_WARN_COMMA = YES; 279 | CLANG_WARN_CONSTANT_CONVERSION = YES; 280 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 281 | CLANG_WARN_EMPTY_BODY = YES; 282 | CLANG_WARN_ENUM_CONVERSION = YES; 283 | CLANG_WARN_INFINITE_RECURSION = YES; 284 | CLANG_WARN_INT_CONVERSION = YES; 285 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 286 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 287 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 288 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 289 | CLANG_WARN_STRICT_PROTOTYPES = YES; 290 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 291 | CLANG_WARN_UNREACHABLE_CODE = YES; 292 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 293 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 294 | COPY_PHASE_STRIP = NO; 295 | DEBUG_INFORMATION_FORMAT = dwarf; 296 | ENABLE_STRICT_OBJC_MSGSEND = YES; 297 | ENABLE_TESTABILITY = YES; 298 | GCC_C_LANGUAGE_STANDARD = gnu99; 299 | GCC_DYNAMIC_NO_PIC = NO; 300 | GCC_NO_COMMON_BLOCKS = YES; 301 | GCC_OPTIMIZATION_LEVEL = 0; 302 | GCC_PREPROCESSOR_DEFINITIONS = ( 303 | "DEBUG=1", 304 | "$(inherited)", 305 | ); 306 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 307 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 308 | GCC_WARN_UNDECLARED_SELECTOR = YES; 309 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 310 | GCC_WARN_UNUSED_FUNCTION = YES; 311 | GCC_WARN_UNUSED_VARIABLE = YES; 312 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 313 | MTL_ENABLE_DEBUG_INFO = YES; 314 | ONLY_ACTIVE_ARCH = YES; 315 | SDKROOT = iphoneos; 316 | TARGETED_DEVICE_FAMILY = "1,2"; 317 | }; 318 | name = Debug; 319 | }; 320 | 97C147041CF9000F007C117D /* Release */ = { 321 | isa = XCBuildConfiguration; 322 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 323 | buildSettings = { 324 | ALWAYS_SEARCH_USER_PATHS = NO; 325 | CLANG_ANALYZER_NONNULL = YES; 326 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 327 | CLANG_CXX_LIBRARY = "libc++"; 328 | CLANG_ENABLE_MODULES = YES; 329 | CLANG_ENABLE_OBJC_ARC = YES; 330 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 331 | CLANG_WARN_BOOL_CONVERSION = YES; 332 | CLANG_WARN_COMMA = YES; 333 | CLANG_WARN_CONSTANT_CONVERSION = YES; 334 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 335 | CLANG_WARN_EMPTY_BODY = YES; 336 | CLANG_WARN_ENUM_CONVERSION = YES; 337 | CLANG_WARN_INFINITE_RECURSION = YES; 338 | CLANG_WARN_INT_CONVERSION = YES; 339 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 340 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 341 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 342 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 343 | CLANG_WARN_STRICT_PROTOTYPES = YES; 344 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 345 | CLANG_WARN_UNREACHABLE_CODE = YES; 346 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 347 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 348 | COPY_PHASE_STRIP = NO; 349 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 350 | ENABLE_NS_ASSERTIONS = NO; 351 | ENABLE_STRICT_OBJC_MSGSEND = YES; 352 | GCC_C_LANGUAGE_STANDARD = gnu99; 353 | GCC_NO_COMMON_BLOCKS = YES; 354 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 355 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 356 | GCC_WARN_UNDECLARED_SELECTOR = YES; 357 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 358 | GCC_WARN_UNUSED_FUNCTION = YES; 359 | GCC_WARN_UNUSED_VARIABLE = YES; 360 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 361 | MTL_ENABLE_DEBUG_INFO = NO; 362 | SDKROOT = iphoneos; 363 | TARGETED_DEVICE_FAMILY = "1,2"; 364 | VALIDATE_PRODUCT = YES; 365 | }; 366 | name = Release; 367 | }; 368 | 97C147061CF9000F007C117D /* Debug */ = { 369 | isa = XCBuildConfiguration; 370 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 371 | buildSettings = { 372 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 373 | CURRENT_PROJECT_VERSION = 1; 374 | ENABLE_BITCODE = NO; 375 | FRAMEWORK_SEARCH_PATHS = ( 376 | "$(inherited)", 377 | "$(PROJECT_DIR)/Flutter", 378 | ); 379 | INFOPLIST_FILE = Runner/Info.plist; 380 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 381 | LIBRARY_SEARCH_PATHS = ( 382 | "$(inherited)", 383 | "$(PROJECT_DIR)/Flutter", 384 | ); 385 | PRODUCT_BUNDLE_IDENTIFIER = me.inrush.example; 386 | PRODUCT_NAME = "$(TARGET_NAME)"; 387 | VERSIONING_SYSTEM = "apple-generic"; 388 | }; 389 | name = Debug; 390 | }; 391 | 97C147071CF9000F007C117D /* Release */ = { 392 | isa = XCBuildConfiguration; 393 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 394 | buildSettings = { 395 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 396 | CURRENT_PROJECT_VERSION = 1; 397 | ENABLE_BITCODE = NO; 398 | FRAMEWORK_SEARCH_PATHS = ( 399 | "$(inherited)", 400 | "$(PROJECT_DIR)/Flutter", 401 | ); 402 | INFOPLIST_FILE = Runner/Info.plist; 403 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 404 | LIBRARY_SEARCH_PATHS = ( 405 | "$(inherited)", 406 | "$(PROJECT_DIR)/Flutter", 407 | ); 408 | PRODUCT_BUNDLE_IDENTIFIER = me.inrush.example; 409 | PRODUCT_NAME = "$(TARGET_NAME)"; 410 | VERSIONING_SYSTEM = "apple-generic"; 411 | }; 412 | name = Release; 413 | }; 414 | /* End XCBuildConfiguration section */ 415 | 416 | /* Begin XCConfigurationList section */ 417 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 418 | isa = XCConfigurationList; 419 | buildConfigurations = ( 420 | 97C147031CF9000F007C117D /* Debug */, 421 | 97C147041CF9000F007C117D /* Release */, 422 | ); 423 | defaultConfigurationIsVisible = 0; 424 | defaultConfigurationName = Release; 425 | }; 426 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 427 | isa = XCConfigurationList; 428 | buildConfigurations = ( 429 | 97C147061CF9000F007C117D /* Debug */, 430 | 97C147071CF9000F007C117D /* Release */, 431 | ); 432 | defaultConfigurationIsVisible = 0; 433 | defaultConfigurationName = Release; 434 | }; 435 | /* End XCConfigurationList section */ 436 | }; 437 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 438 | } 439 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 56 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 75 | 77 | 83 | 84 | 85 | 86 | 88 | 89 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /example/ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /example/ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /example/ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | example 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /example/ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /example/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:tip_dialog/tip_dialog.dart'; 5 | 6 | void main() => runApp(new MyApp()); 7 | 8 | class MyApp extends StatelessWidget { 9 | // This widget is the root of your application. 10 | @override 11 | Widget build(BuildContext context) { 12 | return new MaterialApp( 13 | title: 'TipDialog Demo', 14 | theme: new ThemeData(), 15 | home: Stack( 16 | children: [ 17 | MyHomePage('TipDialog Demo Home Page'), 18 | TipDialogContainer( 19 | duration: const Duration(seconds: 2), 20 | outsideTouchable: true, 21 | onOutsideTouch: (Widget tipDialog) { 22 | if (tipDialog is TipDialog && 23 | tipDialog.type == TipDialogType.LOADING) { 24 | TipDialogHelper.dismiss(); 25 | } 26 | }) 27 | ], 28 | ), 29 | ); 30 | } 31 | } 32 | 33 | class MyHomePage extends StatefulWidget { 34 | MyHomePage(this.title,{Key? key}) : super(key: key); 35 | 36 | final String title; 37 | 38 | @override 39 | _MyHomePageState createState() => new _MyHomePageState(); 40 | } 41 | 42 | class _MyHomePageState extends State { 43 | Widget _buildItem(String name, VoidCallback callback) { 44 | return new GestureDetector( 45 | onTap: callback, 46 | child: new ListTile( 47 | title: new Text(name), 48 | ), 49 | ); 50 | } 51 | 52 | @override 53 | Widget build(BuildContext context) { 54 | return new Scaffold( 55 | appBar: new AppBar( 56 | title: new Text(widget.title), 57 | elevation: 0.5, 58 | ), 59 | body: new ListView(children: [ 60 | _buildItem("Loading Type Tip Dialog", () async { 61 | TipDialogHelper.loading("Loading"); 62 | await new Future.delayed(new Duration(seconds: 5)); 63 | TipDialogHelper.dismiss(); 64 | }), 65 | new Divider(), 66 | _buildItem("Success Type Tip Dialog", () async { 67 | TipDialogHelper.success("Loaded Successfully"); 68 | }), 69 | new Divider(), 70 | _buildItem("Fail Type Tip Dialog", () async { 71 | TipDialogHelper.fail("Load Failed"); 72 | }), 73 | new Divider(), 74 | _buildItem("Info Type Tip Dialog", () async { 75 | TipDialogHelper.info("Do Not Repeat"); 76 | }), 77 | new Divider(), 78 | _buildItem("Only Icon Tip Dialog", () async { 79 | TipDialogHelper.show(new TipDialog( 80 | type: TipDialogType.SUCCESS, 81 | )); 82 | }), 83 | new Divider(), 84 | _buildItem("Only text Tip Dialog", () async { 85 | TipDialogHelper.show(new TipDialog( 86 | type: TipDialogType.NOTHING, 87 | tip: "Do Not Repeat", 88 | )); 89 | }), 90 | new Divider(), 91 | _buildItem("Custom Icon Tip Dialog", () async { 92 | TipDialogHelper.show(new TipDialog.customIcon( 93 | icon: new Icon( 94 | Icons.file_download, 95 | color: Colors.white, 96 | size: 30.0, 97 | textDirection: TextDirection.ltr, 98 | ), 99 | tip: "Download", 100 | )); 101 | }), 102 | new Divider(), 103 | _buildItem("Custom Body Tip Dialog", () async { 104 | TipDialogHelper.show(new TipDialog.builder( 105 | bodyBuilder: (context) { 106 | return new Container( 107 | width: 120.0, 108 | height: 90.0, 109 | alignment: Alignment.center, 110 | child: new Text( 111 | "Custom", 112 | style: new TextStyle(color: Colors.white), 113 | 114 | /// if TipDialogContainer are outside of MaterialApp, 115 | /// here is a must to set 116 | textDirection: TextDirection.ltr, 117 | ), 118 | ); 119 | }, 120 | color: Colors.blue.withAlpha(150), 121 | )); 122 | }), 123 | new Divider(), 124 | ])); 125 | } 126 | } 127 | -------------------------------------------------------------------------------- /example/pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.8.2" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "2.1.0" 18 | characters: 19 | dependency: transitive 20 | description: 21 | name: characters 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.2.0" 25 | charcode: 26 | dependency: transitive 27 | description: 28 | name: charcode 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.3.1" 32 | clock: 33 | dependency: transitive 34 | description: 35 | name: clock 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.0" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.15.0" 46 | cupertino_icons: 47 | dependency: "direct main" 48 | description: 49 | name: cupertino_icons 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "0.1.3" 53 | fake_async: 54 | dependency: transitive 55 | description: 56 | name: fake_async 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "1.2.0" 60 | flutter: 61 | dependency: "direct main" 62 | description: flutter 63 | source: sdk 64 | version: "0.0.0" 65 | flutter_test: 66 | dependency: "direct dev" 67 | description: flutter 68 | source: sdk 69 | version: "0.0.0" 70 | loading_view: 71 | dependency: transitive 72 | description: 73 | path: "../../LoadingView" 74 | relative: true 75 | source: path 76 | version: "1.1.0" 77 | matcher: 78 | dependency: transitive 79 | description: 80 | name: matcher 81 | url: "https://pub.dartlang.org" 82 | source: hosted 83 | version: "0.12.11" 84 | material_color_utilities: 85 | dependency: transitive 86 | description: 87 | name: material_color_utilities 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "0.1.3" 91 | meta: 92 | dependency: transitive 93 | description: 94 | name: meta 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "1.7.0" 98 | path: 99 | dependency: transitive 100 | description: 101 | name: path 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "1.8.0" 105 | sky_engine: 106 | dependency: transitive 107 | description: flutter 108 | source: sdk 109 | version: "0.0.99" 110 | source_span: 111 | dependency: transitive 112 | description: 113 | name: source_span 114 | url: "https://pub.dartlang.org" 115 | source: hosted 116 | version: "1.8.1" 117 | stack_trace: 118 | dependency: transitive 119 | description: 120 | name: stack_trace 121 | url: "https://pub.dartlang.org" 122 | source: hosted 123 | version: "1.10.0" 124 | stream_channel: 125 | dependency: transitive 126 | description: 127 | name: stream_channel 128 | url: "https://pub.dartlang.org" 129 | source: hosted 130 | version: "2.1.0" 131 | string_scanner: 132 | dependency: transitive 133 | description: 134 | name: string_scanner 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "1.1.0" 138 | term_glyph: 139 | dependency: transitive 140 | description: 141 | name: term_glyph 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "1.2.0" 145 | test_api: 146 | dependency: transitive 147 | description: 148 | name: test_api 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "0.4.8" 152 | tip_dialog: 153 | dependency: "direct main" 154 | description: 155 | path: ".." 156 | relative: true 157 | source: path 158 | version: "3.1.0" 159 | typed_data: 160 | dependency: transitive 161 | description: 162 | name: typed_data 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "1.3.0" 166 | vector_math: 167 | dependency: transitive 168 | description: 169 | name: vector_math 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "2.1.1" 173 | sdks: 174 | dart: ">=2.14.0 <3.0.0" 175 | -------------------------------------------------------------------------------- /example/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: example 2 | description: A new Flutter application. 3 | 4 | dependencies: 5 | flutter: 6 | sdk: flutter 7 | 8 | # The following adds the Cupertino Icons font to your application. 9 | # Use with the CupertinoIcons class for iOS style icons. 10 | cupertino_icons: ^0.1.2 11 | 12 | tip_dialog: 13 | path: ../ 14 | 15 | dev_dependencies: 16 | flutter_test: 17 | sdk: flutter 18 | 19 | environment: 20 | sdk: ">=2.12.0 <3.0.0" 21 | 22 | # For information on the generic Dart part of this file, see the 23 | # following page: https://www.dartlang.org/tools/pub/pubspec 24 | 25 | # The following section is specific to Flutter. 26 | flutter: 27 | 28 | # The following line ensures that the Material Icons font is 29 | # included with your application, so that you can use the icons in 30 | # the material Icons class. 31 | uses-material-design: true 32 | 33 | # To add assets to your application, add an assets section, like this: 34 | # assets: 35 | # - 36 | 37 | # An image asset can refer to one or more resolution-specific "variants", see 38 | # https://flutter.io/assets-and-images/#resolution-aware. 39 | 40 | # For details regarding adding assets from package dependencies, see 41 | # https://flutter.io/assets-and-images/#from-packages 42 | 43 | # To add custom fonts to your application, add a fonts section here, 44 | # in this "flutter" section. Each entry in this list should have a 45 | # "family" key with the font family name, and a "fonts" key with a 46 | # list giving the asset and other descriptors for the font. For 47 | # example: 48 | # fonts: 49 | # - family: Schyler 50 | # fonts: 51 | # - asset: fonts/Schyler-Regular.ttf 52 | # - asset: fonts/Schyler-Italic.ttf 53 | # style: italic 54 | # - family: Trajan Pro 55 | # fonts: 56 | # - asset: fonts/TrajanPro.ttf 57 | # - asset: fonts/TrajanPro_Bold.ttf 58 | # weight: 700 59 | # 60 | # For details regarding fonts from package dependencies, 61 | # see https://flutter.io/custom-fonts/#from-packages 62 | -------------------------------------------------------------------------------- /images/2.0x/icon_notify_done.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/images/2.0x/icon_notify_done.png -------------------------------------------------------------------------------- /images/2.0x/icon_notify_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/images/2.0x/icon_notify_error.png -------------------------------------------------------------------------------- /images/2.0x/icon_notify_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/images/2.0x/icon_notify_info.png -------------------------------------------------------------------------------- /images/3.0x/icon_notify_done.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/images/3.0x/icon_notify_done.png -------------------------------------------------------------------------------- /images/3.0x/icon_notify_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/images/3.0x/icon_notify_error.png -------------------------------------------------------------------------------- /images/3.0x/icon_notify_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/inRush/TipDialog/ad341877b6eebc525f9f9d499d05d948e31ecb99/images/3.0x/icon_notify_info.png -------------------------------------------------------------------------------- /lib/tip_dialog.dart: -------------------------------------------------------------------------------- 1 | library tip_dialog; 2 | 3 | import 'dart:async'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:loading_view/loading_view.dart'; 6 | 7 | enum TipDialogType { NOTHING, LOADING, SUCCESS, FAIL, INFO, CUSTOM } 8 | 9 | class TipDialogIcon extends StatelessWidget { 10 | TipDialogIcon(this.type, {this.color: Colors.white}); 11 | 12 | final TipDialogType type; 13 | final Color color; 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | switch (type) { 18 | case TipDialogType.SUCCESS: 19 | return new ImageIcon( 20 | AssetImage("packages/tip_dialog/images/icon_notify_done.png"), 21 | size: 35.0, 22 | color: color, 23 | ); 24 | case TipDialogType.FAIL: 25 | return new ImageIcon( 26 | AssetImage("packages/tip_dialog/images/icon_notify_error.png"), 27 | size: 35.0, 28 | color: color, 29 | ); 30 | case TipDialogType.INFO: 31 | return new ImageIcon( 32 | AssetImage("packages/tip_dialog/images/icon_notify_info.png"), 33 | size: 35.0, 34 | color: color, 35 | ); 36 | case TipDialogType.LOADING: 37 | return new LoadingView( 38 | 35.0, 39 | color: color, 40 | ); 41 | default: 42 | throw new Exception( 43 | "this type $type is not in TipDialogType: NOTHING, LOADING, SUCCESS, FAIL, INFO"); 44 | } 45 | } 46 | } 47 | 48 | class TipDialog extends StatelessWidget { 49 | TipDialog({Key? key, this.type: TipDialogType.NOTHING, this.tip}) 50 | : icon = type == TipDialogType.NOTHING ? null : new TipDialogIcon(type), 51 | _bodyBuilder = null, 52 | color = const Color(0xbb000000), 53 | super(key: key); 54 | 55 | TipDialog.customIcon({Key? key, this.icon, this.tip}) 56 | : assert(icon != null || tip != null), 57 | _bodyBuilder = null, 58 | type = TipDialogType.CUSTOM, 59 | color = const Color(0xbb000000), 60 | super(key: key); 61 | 62 | TipDialog.builder( 63 | {Key? key, 64 | WidgetBuilder? bodyBuilder, 65 | this.color: const Color(0xbb000000)}) 66 | : this._bodyBuilder = bodyBuilder, 67 | type = TipDialogType.CUSTOM, 68 | tip = null, 69 | icon = null, 70 | super(key: key); 71 | 72 | final String? tip; 73 | final Widget? icon; 74 | final WidgetBuilder? _bodyBuilder; 75 | final Color color; 76 | final TipDialogType type; 77 | 78 | Widget _buildBody() { 79 | List childs = []; 80 | if (icon != null) { 81 | childs.add(new Padding( 82 | padding: tip == null 83 | ? const EdgeInsets.all(20.0) 84 | : const EdgeInsets.fromLTRB(0.0, 8.0, 0.0, 8.0), 85 | child: icon, 86 | )); 87 | } 88 | if (tip != null) { 89 | childs.add(new Padding( 90 | padding: icon == null 91 | ? const EdgeInsets.fromLTRB(8.0, 0.0, 8.0, 0.0) 92 | : const EdgeInsets.fromLTRB(8.0, 0.0, 8.0, 8.0), 93 | child: new Text( 94 | tip ?? "", 95 | textAlign: TextAlign.center, 96 | style: new TextStyle(color: Colors.white, fontSize: 15.0), 97 | textDirection: TextDirection.ltr, 98 | ), 99 | )); 100 | } 101 | return new Column( 102 | mainAxisSize: MainAxisSize.min, 103 | mainAxisAlignment: MainAxisAlignment.center, 104 | children: childs, 105 | ); 106 | } 107 | 108 | @override 109 | Widget build(BuildContext context) { 110 | return new ClipRRect( 111 | borderRadius: new BorderRadius.circular(15.0), 112 | child: new Container( 113 | constraints: icon == null || tip == null 114 | ? new BoxConstraints(minHeight: 50.0, minWidth: 100.0) 115 | : new BoxConstraints(minHeight: 90.0, minWidth: 120.0), 116 | color: color, 117 | child: _bodyBuilder == null ? _buildBody() : _bodyBuilder!(context), 118 | ), 119 | ); 120 | } 121 | } 122 | 123 | typedef OutsideTouchCallback(Widget tipDialog); 124 | 125 | class TipDialogContainer extends StatefulWidget { 126 | TipDialogContainer( 127 | {this.duration: const Duration(seconds: 2), 128 | this.maskAlpha: 0.3, 129 | this.outsideTouchable: false, 130 | this.onOutsideTouch}); 131 | 132 | final Duration duration; 133 | final double maskAlpha; 134 | final bool outsideTouchable; 135 | 136 | final OutsideTouchCallback? onOutsideTouch; 137 | 138 | @override 139 | State createState() { 140 | TipDialogContainerState state = TipDialogContainerState(); 141 | TipDialogHelper._init(state); 142 | return state; 143 | } 144 | } 145 | 146 | class TipDialogContainerState extends State 147 | with TickerProviderStateMixin { 148 | Timer? _timer; 149 | bool _show = false; 150 | late AnimationController _animationController; 151 | late Animation _scaleAnimation; 152 | late VoidCallback _animationListener; 153 | bool _prepareDismiss = false; 154 | late Widget _tipDialog; 155 | 156 | /// if true, the dialog will not automatically disappear 157 | /// otherwise, the dialog will automatically disappear after the [Duration] set by [TipDialogContainer] 158 | bool _isAutoDismiss = true; 159 | 160 | bool get isShow => _show; 161 | 162 | void dismiss() { 163 | setState(() { 164 | if (_prepareDismiss || !_show) { 165 | return; 166 | } 167 | if (_animationController.isAnimating) { 168 | _show = false; 169 | _animationController.stop(canceled: true); 170 | } else { 171 | _prepareDismiss = true; 172 | _animationController.reverse(); 173 | } 174 | }); 175 | } 176 | 177 | /// tipDialog: Need to display the widget 178 | /// (default uses the dialog set by [TipDialogContainer]) 179 | /// 180 | /// isLoading: decide whether to disappear automatically 181 | /// (default uses the value set by [TipDialogContainer], 182 | /// set type = TipDialogType.LOADING, the value will be true, otherwise will be false.) 183 | void show(Widget tipDialog, {bool isAutoDismiss: true}) { 184 | _tipDialog = tipDialog; 185 | // when tip dialog equal null, isLoading must inherit the origin value 186 | _isAutoDismiss = isAutoDismiss; 187 | setState(() { 188 | _start(); 189 | _show = true; 190 | }); 191 | } 192 | 193 | @override 194 | void initState() { 195 | super.initState(); 196 | _show = false; 197 | _animationController = new AnimationController( 198 | value: 0.0, duration: new Duration(milliseconds: 200), vsync: this); 199 | _animationListener = () { 200 | if (_animationController.value == 0.0 && _prepareDismiss) { 201 | setState(() { 202 | _show = false; 203 | _prepareDismiss = false; 204 | }); 205 | } 206 | }; 207 | _animationController.addListener(_animationListener); 208 | _scaleAnimation = 209 | new Tween(begin: 0.95, end: 1.0).animate(_animationController); 210 | } 211 | 212 | @override 213 | void didChangeDependencies() { 214 | super.didChangeDependencies(); 215 | if (_show) { 216 | _start(); 217 | } 218 | } 219 | 220 | void _start() { 221 | _animationController.forward(from: 0.0); 222 | if (_isAutoDismiss) { 223 | if (_timer != null) { 224 | _timer?.cancel(); 225 | if (_show) { 226 | dismiss(); 227 | } 228 | _timer = null; 229 | } 230 | _timer = new Timer(widget.duration, () { 231 | dismiss(); 232 | _timer = null; 233 | }); 234 | } 235 | } 236 | 237 | @override 238 | void dispose() { 239 | if (_timer != null) { 240 | _timer?.cancel(); 241 | if (_show) { 242 | dismiss(); 243 | } 244 | } 245 | _animationController.removeListener(_animationListener); 246 | _animationController.dispose(); 247 | super.dispose(); 248 | } 249 | 250 | Widget _buildMaskLayer() { 251 | return new LayoutBuilder(builder: (context, size) { 252 | return new FadeTransition( 253 | opacity: _animationController, 254 | child: new GestureDetector( 255 | onTap: () { 256 | if (widget.outsideTouchable) { 257 | if (widget.onOutsideTouch == null && !_isAutoDismiss) { 258 | this.dismiss(); 259 | } else if (widget.onOutsideTouch != null) { 260 | widget.onOutsideTouch!(_tipDialog); 261 | } 262 | } 263 | }, 264 | child: new Container( 265 | width: size.maxWidth, 266 | height: size.maxHeight, 267 | color: Colors.black.withAlpha(widget.maskAlpha * 255 ~/ 1), 268 | ), 269 | ), 270 | ); 271 | }); 272 | } 273 | 274 | @override 275 | Widget build(BuildContext context) { 276 | List widgets = []; 277 | if (_show) { 278 | widgets.add(_buildMaskLayer()); 279 | widgets.add(new ScaleTransition( 280 | scale: _scaleAnimation, 281 | child: new FadeTransition( 282 | opacity: _animationController, 283 | child: _tipDialog, 284 | ), 285 | )); 286 | return new Scaffold( 287 | backgroundColor: Colors.transparent, 288 | body: Stack( 289 | alignment: Alignment.center, 290 | children: widgets, 291 | ), 292 | ); 293 | } 294 | return SizedBox.shrink(); 295 | } 296 | } 297 | 298 | class TipDialogHelper { 299 | static late TipDialogContainerState _tipDialog; 300 | 301 | static _init(TipDialogContainerState state) { 302 | _tipDialog = state; 303 | } 304 | 305 | static void show(Widget tipDialog, {bool isAutoDismiss: true}) { 306 | _tipDialog.show(tipDialog, isAutoDismiss: isAutoDismiss); 307 | } 308 | 309 | static void dismiss() { 310 | _tipDialog.dismiss(); 311 | } 312 | 313 | static void info(String tip) { 314 | show(TipDialog(type: TipDialogType.INFO, tip: tip)); 315 | } 316 | 317 | static void fail(String errMsg) { 318 | show(TipDialog(type: TipDialogType.FAIL, tip: errMsg)); 319 | } 320 | 321 | static void success(String success) { 322 | show(TipDialog(type: TipDialogType.SUCCESS, tip: success)); 323 | } 324 | 325 | static void loading(String loadingTip) { 326 | show(TipDialog(type: TipDialogType.LOADING, tip: loadingTip), 327 | isAutoDismiss: false); 328 | } 329 | } 330 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.8.2" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "2.1.0" 18 | characters: 19 | dependency: transitive 20 | description: 21 | name: characters 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.2.0" 25 | charcode: 26 | dependency: transitive 27 | description: 28 | name: charcode 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.3.1" 32 | clock: 33 | dependency: transitive 34 | description: 35 | name: clock 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.0" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.15.0" 46 | fake_async: 47 | dependency: transitive 48 | description: 49 | name: fake_async 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.2.0" 53 | flutter: 54 | dependency: "direct main" 55 | description: flutter 56 | source: sdk 57 | version: "0.0.0" 58 | flutter_test: 59 | dependency: "direct dev" 60 | description: flutter 61 | source: sdk 62 | version: "0.0.0" 63 | loading_view: 64 | dependency: "direct main" 65 | description: 66 | name: loading_view 67 | url: "https://pub.dartlang.org" 68 | source: hosted 69 | version: "1.1.0" 70 | matcher: 71 | dependency: transitive 72 | description: 73 | name: matcher 74 | url: "https://pub.dartlang.org" 75 | source: hosted 76 | version: "0.12.11" 77 | material_color_utilities: 78 | dependency: transitive 79 | description: 80 | name: material_color_utilities 81 | url: "https://pub.dartlang.org" 82 | source: hosted 83 | version: "0.1.3" 84 | meta: 85 | dependency: transitive 86 | description: 87 | name: meta 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "1.7.0" 91 | path: 92 | dependency: transitive 93 | description: 94 | name: path 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "1.8.0" 98 | sky_engine: 99 | dependency: transitive 100 | description: flutter 101 | source: sdk 102 | version: "0.0.99" 103 | source_span: 104 | dependency: transitive 105 | description: 106 | name: source_span 107 | url: "https://pub.dartlang.org" 108 | source: hosted 109 | version: "1.8.1" 110 | stack_trace: 111 | dependency: transitive 112 | description: 113 | name: stack_trace 114 | url: "https://pub.dartlang.org" 115 | source: hosted 116 | version: "1.10.0" 117 | stream_channel: 118 | dependency: transitive 119 | description: 120 | name: stream_channel 121 | url: "https://pub.dartlang.org" 122 | source: hosted 123 | version: "2.1.0" 124 | string_scanner: 125 | dependency: transitive 126 | description: 127 | name: string_scanner 128 | url: "https://pub.dartlang.org" 129 | source: hosted 130 | version: "1.1.0" 131 | term_glyph: 132 | dependency: transitive 133 | description: 134 | name: term_glyph 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "1.2.0" 138 | test_api: 139 | dependency: transitive 140 | description: 141 | name: test_api 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "0.4.8" 145 | typed_data: 146 | dependency: transitive 147 | description: 148 | name: typed_data 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "1.3.0" 152 | vector_math: 153 | dependency: transitive 154 | description: 155 | name: vector_math 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "2.1.1" 159 | sdks: 160 | dart: ">=2.14.0 <3.0.0" 161 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: tip_dialog 2 | description: A Flutter Tip Dialog 3 | version: 4.0.0 4 | homepage: https://github.com/inRush/TipDialog 5 | 6 | dependencies: 7 | flutter: 8 | sdk: flutter 9 | 10 | loading_view: ^1.1.0 11 | 12 | environment: 13 | sdk: ">=2.12.0 <3.0.0" 14 | 15 | dev_dependencies: 16 | flutter_test: 17 | sdk: flutter 18 | 19 | # For information on the generic Dart part of this file, see the 20 | # following page: https://www.dartlang.org/tools/pub/pubspec 21 | 22 | # The following section is specific to Flutter. 23 | flutter: 24 | 25 | # To add assets to your package, add an assets section, like this: 26 | assets: 27 | - images/icon_notify_done.png 28 | - images/icon_notify_error.png 29 | - images/icon_notify_info.png 30 | # 31 | # For details regarding assets in packages, see 32 | # https://flutter.io/assets-and-images/#from-packages 33 | # 34 | # An image asset can refer to one or more resolution-specific "variants", see 35 | # https://flutter.io/assets-and-images/#resolution-aware. 36 | 37 | # To add custom fonts to your package, add a fonts section here, 38 | # in this "flutter" section. Each entry in this list should have a 39 | # "family" key with the font family name, and a "fonts" key with a 40 | # list giving the asset and other descriptors for the font. For 41 | # example: 42 | # fonts: 43 | # - family: Schyler 44 | # fonts: 45 | # - asset: fonts/Schyler-Regular.ttf 46 | # - asset: fonts/Schyler-Italic.ttf 47 | # style: italic 48 | # - family: Trajan Pro 49 | # fonts: 50 | # - asset: fonts/TrajanPro.ttf 51 | # - asset: fonts/TrajanPro_Bold.ttf 52 | # weight: 700 53 | # 54 | # For details regarding fonts in packages, see 55 | # https://flutter.io/custom-fonts/#from-packages 56 | -------------------------------------------------------------------------------- /tip_dialog.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | --------------------------------------------------------------------------------