├── .gitignore ├── .metadata ├── CHANGELOG.md ├── LICENSE ├── README.md ├── example ├── .gitignore ├── .metadata ├── README.md ├── android │ ├── app │ │ ├── build.gradle │ │ └── src │ │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ │ ├── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── 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 │ │ │ └── profile │ │ │ └── AndroidManifest.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ └── settings.gradle ├── demo_picture │ └── simpleDemo.png ├── images │ ├── icon_00.png │ ├── icon_01.png │ ├── icon_02.png │ ├── icon_03.png │ ├── icon_04.png │ ├── icon_05.png │ ├── icon_06.png │ ├── icon_07.png │ └── icon_08.png ├── ios │ ├── Flutter │ │ ├── AppFrameworkInfo.plist │ │ ├── Debug.xcconfig │ │ └── Release.xcconfig │ ├── Runner.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── 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 │ ├── demo_page │ │ ├── simple_demo_page.dart │ │ └── wrap_refresh_demo_page.dart │ ├── demo_tool │ │ └── route_tool.dart │ └── main.dart ├── pubspec.lock ├── pubspec.yaml └── test │ └── widget_test.dart ├── lib └── flutter_tableview.dart ├── pubspec.lock ├── pubspec.yaml └── test └── flutter_tableview_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # Visual Studio Code related 19 | .vscode/ 20 | 21 | # Flutter/Dart/Pub related 22 | **/doc/api/ 23 | .dart_tool/ 24 | .flutter-plugins 25 | .packages 26 | .pub-cache/ 27 | .pub/ 28 | build/ 29 | 30 | # Android related 31 | **/android/**/gradle-wrapper.jar 32 | **/android/.gradle 33 | **/android/captures/ 34 | **/android/gradlew 35 | **/android/gradlew.bat 36 | **/android/local.properties 37 | **/android/**/GeneratedPluginRegistrant.java 38 | 39 | # iOS/XCode related 40 | **/ios/**/*.mode1v3 41 | **/ios/**/*.mode2v3 42 | **/ios/**/*.moved-aside 43 | **/ios/**/*.pbxuser 44 | **/ios/**/*.perspectivev3 45 | **/ios/**/*sync/ 46 | **/ios/**/.sconsign.dblite 47 | **/ios/**/.tags* 48 | **/ios/**/.vagrant/ 49 | **/ios/**/DerivedData/ 50 | **/ios/**/Icon? 51 | **/ios/**/Pods/ 52 | **/ios/**/.symlinks/ 53 | **/ios/**/profile 54 | **/ios/**/xcuserdata 55 | **/ios/.generated/ 56 | **/ios/Flutter/App.framework 57 | **/ios/Flutter/Flutter.framework 58 | **/ios/Flutter/Generated.xcconfig 59 | **/ios/Flutter/app.flx 60 | **/ios/Flutter/app.zip 61 | **/ios/Flutter/flutter_assets/ 62 | **/ios/ServiceDefinitions.json 63 | **/ios/Runner/GeneratedPluginRegistrant.* 64 | 65 | # Exceptions to above rules. 66 | !**/ios/**/default.mode1v3 67 | !**/ios/**/default.mode2v3 68 | !**/ios/**/default.pbxuser 69 | !**/ios/**/default.perspectivev3 70 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 71 | -------------------------------------------------------------------------------- /.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: 7a4c33425ddd78c54aba07d86f3f9a4a0051769b 8 | channel: stable 9 | 10 | project_type: package 11 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## [1.0.1] - 2019-06-17 2 | 3 | * Edit README.MD 4 | 5 | 6 | ## [1.0.0] - 2019-06-15 7 | 8 | * flutter_tableview first version published. 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 chenfanfang 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 all 13 | 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 THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # [中文](https://www.jianshu.com/p/031a36e99196) 2 | 3 | # flutter_tableview 4 | [![pub package](https://img.shields.io/badge/pub-v1.0.1-orange.svg)](https://github.com/chenfanfang/flutter_tableView) 5 | 6 | A flutter widget like iOS UITableview. let listView with section header and each section header will hover at the top. 7 | 8 | ## Installing: 9 | 10 | Add the following to your `pubspec.yaml` file: 11 | 12 | dependencies: 13 | flutter_tableview: ^1.0.1 14 | 15 | ## How to use 16 | 17 | ```dart 18 | class SimpleDemoPageBody extends StatefulWidget { 19 | @override 20 | _SimpleDemoPageBodyState createState() => _SimpleDemoPageBodyState(); 21 | } 22 | 23 | class _SimpleDemoPageBodyState extends State { 24 | // How many section. 25 | int sectionCount = 3; 26 | 27 | // Get row count. 28 | int _rowCountAtSection(int section) { 29 | if (section == 0) { 30 | return 5; 31 | } else if (section == 1) { 32 | return 10; 33 | } else { 34 | return 20; 35 | } 36 | } 37 | 38 | // Section header widget builder. 39 | Widget _sectionHeaderBuilder(BuildContext context, int section) { 40 | return InkWell( 41 | onTap: () { 42 | print('click section header. -> section:$section'); 43 | }, 44 | child: Container( 45 | alignment: Alignment.centerLeft, 46 | padding: EdgeInsets.only(left: 16.0), 47 | color: Color.fromRGBO(220, 220, 220, 1), 48 | height: 100, 49 | child: Text('I am section header -> section:$section'), 50 | ), 51 | ); 52 | } 53 | 54 | // cell item widget builder. 55 | Widget _cellBuilder(BuildContext context, int section, int row) { 56 | return InkWell( 57 | onTap: () { 58 | print('click cell item. -> section:$section row:$row'); 59 | }, 60 | child: Container( 61 | padding: EdgeInsets.only(left: 16.0), 62 | alignment: Alignment.centerLeft, 63 | decoration: BoxDecoration( 64 | border: Border( 65 | bottom: BorderSide( 66 | color: Color.fromRGBO(240, 240, 240, 1), 67 | ))), 68 | height: 50.0, 69 | child: Text('I am cell -> section:$section row$row'), 70 | ), 71 | ); 72 | } 73 | 74 | // Each section header height; 75 | double _sectionHeaderHeight(BuildContext context, int section) { 76 | return 50.0; 77 | } 78 | 79 | // Each cell item widget height. 80 | double _cellHeight(BuildContext context, int section, int row) { 81 | return 50.0; 82 | } 83 | 84 | @override 85 | Widget build(BuildContext context) { 86 | return Container( 87 | //FlutterTableView 88 | child: FlutterTableView( 89 | sectionCount: sectionCount, 90 | rowCountAtSection: _rowCountAtSection, 91 | sectionHeaderBuilder: _sectionHeaderBuilder, 92 | cellBuilder: _cellBuilder, 93 | sectionHeaderHeight: _sectionHeaderHeight, 94 | cellHeight: _cellHeight, 95 | ), 96 | ); 97 | } 98 | } 99 | ``` 100 | 101 | 102 | ![demo_picture](https://raw.githubusercontent.com/chenfanfang/flutter_tableView/master/example/demo_picture/simpleDemo.png) 103 | 104 | gif:
105 | ![simple_demo.gif](https://upload-images.jianshu.io/upload_images/1594675-b85a99f485c5a25f.gif?imageMogr2/auto-orient/strip) 106 | 107 | 108 | 109 | 110 | ##### If you want to wrap listView with other widget (such as [flutter_easyrefresh](https://github.com/xuelongqy/flutter_easyrefresh)) 111 | 112 | 113 | 114 | ```dart 115 | FlutterTableView( 116 | sectionCount: this.dataSourceList.length, 117 | rowCountAtSection: _rowCountAtSection, 118 | sectionHeaderBuilder: _sectionHeaderBuilder, 119 | cellBuilder: _cellBuilder, 120 | sectionHeaderHeight: _sectionHeaderHeight, 121 | cellHeight: _cellHeight, 122 | listViewFatherWidgetBuilder: (BuildContext context, Widget listView) { 123 | return EasyRefresh( 124 | key: _easyRefreshKey, 125 | limitScroll: true, 126 | refreshHeader: MaterialHeader(key: _headerKey), 127 | refreshFooter: MaterialFooter(key: _footerKey), 128 | onRefresh: () async {}, 129 | loadMore: () async {}, 130 | child: listView, 131 | ); 132 | }, 133 | ), 134 | 135 | // detail usage please download demo 136 | ``` 137 | 138 | gif:
139 | ![wrap_refresh_demo.gif](https://upload-images.jianshu.io/upload_images/1594675-842791f8f08ca4ab.gif) 140 | 141 | ## License 142 | MIT License 143 | 144 | Copyright (c) 2019 chenfanfang 145 | 146 | Permission is hereby granted, free of charge, to any person obtaining a copy 147 | of this software and associated documentation files (the "Software"), to deal 148 | in the Software without restriction, including without limitation the rights 149 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 150 | copies of the Software, and to permit persons to whom the Software is 151 | furnished to do so, subject to the following conditions: 152 | 153 | The above copyright notice and this permission notice shall be included in all 154 | copies or substantial portions of the Software. 155 | 156 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 157 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 158 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 159 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 160 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 161 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 162 | SOFTWARE. 163 | -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # Visual Studio Code related 19 | .vscode/ 20 | 21 | # Flutter/Dart/Pub related 22 | **/doc/api/ 23 | .dart_tool/ 24 | .flutter-plugins 25 | .packages 26 | .pub-cache/ 27 | .pub/ 28 | /build/ 29 | 30 | # Android related 31 | **/android/**/gradle-wrapper.jar 32 | **/android/.gradle 33 | **/android/captures/ 34 | **/android/gradlew 35 | **/android/gradlew.bat 36 | **/android/local.properties 37 | **/android/**/GeneratedPluginRegistrant.java 38 | 39 | # iOS/XCode related 40 | **/ios/**/*.mode1v3 41 | **/ios/**/*.mode2v3 42 | **/ios/**/*.moved-aside 43 | **/ios/**/*.pbxuser 44 | **/ios/**/*.perspectivev3 45 | **/ios/**/*sync/ 46 | **/ios/**/.sconsign.dblite 47 | **/ios/**/.tags* 48 | **/ios/**/.vagrant/ 49 | **/ios/**/DerivedData/ 50 | **/ios/**/Icon? 51 | **/ios/**/Pods/ 52 | **/ios/**/.symlinks/ 53 | **/ios/**/profile 54 | **/ios/**/xcuserdata 55 | **/ios/.generated/ 56 | **/ios/Flutter/App.framework 57 | **/ios/Flutter/Flutter.framework 58 | **/ios/Flutter/Generated.xcconfig 59 | **/ios/Flutter/app.flx 60 | **/ios/Flutter/app.zip 61 | **/ios/Flutter/flutter_assets/ 62 | **/ios/ServiceDefinitions.json 63 | **/ios/Runner/GeneratedPluginRegistrant.* 64 | 65 | # Exceptions to above rules. 66 | !**/ios/**/default.mode1v3 67 | !**/ios/**/default.mode2v3 68 | !**/ios/**/default.pbxuser 69 | !**/ios/**/default.perspectivev3 70 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 71 | -------------------------------------------------------------------------------- /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: 7a4c33425ddd78c54aba07d86f3f9a4a0051769b 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- 1 | 2 | ## usage 3 | 4 | 5 | ```dart 6 | class SimpleDemoPageBody extends StatefulWidget { 7 | @override 8 | _SimpleDemoPageBodyState createState() => _SimpleDemoPageBodyState(); 9 | } 10 | 11 | class _SimpleDemoPageBodyState extends State { 12 | // How many section. 13 | int sectionCount = 3; 14 | 15 | // Get row count. 16 | int _rowCountAtSection(int section) { 17 | if (section == 0) { 18 | return 5; 19 | } else if (section == 1) { 20 | return 10; 21 | } else { 22 | return 20; 23 | } 24 | } 25 | 26 | // Section header widget builder. 27 | Widget _sectionHeaderBuilder(BuildContext context, int section) { 28 | return InkWell( 29 | onTap: () { 30 | print('click section header. -> section:$section'); 31 | }, 32 | child: Container( 33 | alignment: Alignment.centerLeft, 34 | padding: EdgeInsets.only(left: 16.0), 35 | color: Color.fromRGBO(220, 220, 220, 1), 36 | height: 100, 37 | child: Text('I am section header -> section:$section'), 38 | ), 39 | ); 40 | } 41 | 42 | // cell item widget builder. 43 | Widget _cellBuilder(BuildContext context, int section, int row) { 44 | return InkWell( 45 | onTap: () { 46 | print('click cell item. -> section:$section row:$row'); 47 | }, 48 | child: Container( 49 | padding: EdgeInsets.only(left: 16.0), 50 | alignment: Alignment.centerLeft, 51 | decoration: BoxDecoration( 52 | border: Border( 53 | bottom: BorderSide( 54 | color: Color.fromRGBO(240, 240, 240, 1), 55 | ))), 56 | height: 50.0, 57 | child: Text('I am cell -> section:$section row$row'), 58 | ), 59 | ); 60 | } 61 | 62 | // Each section header height; 63 | double _sectionHeaderHeight(BuildContext context, int section) { 64 | return 50.0; 65 | } 66 | 67 | // Each cell item widget height. 68 | double _cellHeight(BuildContext context, int section, int row) { 69 | return 50.0; 70 | } 71 | 72 | @override 73 | Widget build(BuildContext context) { 74 | return Container( 75 | //FlutterTableView 76 | child: FlutterTableView( 77 | sectionCount: 3, 78 | rowCountAtSection: _rowCountAtSection, 79 | sectionHeaderBuilder: _sectionHeaderBuilder, 80 | cellBuilder: _cellBuilder, 81 | sectionHeaderHeight: _sectionHeaderHeight, 82 | cellHeight: _cellHeight, 83 | ), 84 | ); 85 | } 86 | } 87 | ``` 88 | 89 | 90 | 91 | ##### If you want to wrap listView with other widget (such as [flutter_easyrefresh](https://github.com/xuelongqy/flutter_easyrefresh)) 92 | 93 | 94 | 95 | ```dart 96 | FlutterTableView( 97 | sectionCount: this.dataSourceList.length, 98 | rowCountAtSection: _rowCountAtSection, 99 | sectionHeaderBuilder: _sectionHeaderBuilder, 100 | cellBuilder: _cellBuilder, 101 | sectionHeaderHeight: _sectionHeaderHeight, 102 | cellHeight: _cellHeight, 103 | listViewFatherWidgetBuilder: (BuildContext context, Widget listView) { 104 | return EasyRefresh( 105 | key: _easyRefreshKey, 106 | limitScroll: true, 107 | refreshHeader: MaterialHeader(key: _headerKey), 108 | refreshFooter: MaterialFooter(key: _footerKey), 109 | onRefresh: () async {}, 110 | loadMore: () async {}, 111 | child: listView, 112 | ); 113 | }, 114 | ), 115 | 116 | // detail usage please download demo 117 | ``` -------------------------------------------------------------------------------- /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 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 | 27 | android { 28 | compileSdkVersion 28 29 | 30 | lintOptions { 31 | disable 'InvalidPackage' 32 | } 33 | 34 | defaultConfig { 35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 36 | applicationId "com.example.example" 37 | minSdkVersion 16 38 | targetSdkVersion 28 39 | versionCode flutterVersionCode.toInteger() 40 | versionName flutterVersionName 41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | testImplementation 'junit:junit:4.12' 59 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 60 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 61 | } 62 | -------------------------------------------------------------------------------- /example/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 13 | 20 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/example/example/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.example; 2 | 3 | import android.os.Bundle; 4 | import io.flutter.app.FlutterActivity; 5 | import io.flutter.plugins.GeneratedPluginRegistrant; 6 | 7 | public class MainActivity extends FlutterActivity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | GeneratedPluginRegistrant.registerWith(this); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.2.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 | -------------------------------------------------------------------------------- /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-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /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/demo_picture/simpleDemo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/example/demo_picture/simpleDemo.png -------------------------------------------------------------------------------- /example/images/icon_00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/example/images/icon_00.png -------------------------------------------------------------------------------- /example/images/icon_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/example/images/icon_01.png -------------------------------------------------------------------------------- /example/images/icon_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/example/images/icon_02.png -------------------------------------------------------------------------------- /example/images/icon_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/example/images/icon_03.png -------------------------------------------------------------------------------- /example/images/icon_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/example/images/icon_04.png -------------------------------------------------------------------------------- /example/images/icon_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/example/images/icon_05.png -------------------------------------------------------------------------------- /example/images/icon_06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/example/images/icon_06.png -------------------------------------------------------------------------------- /example/images/icon_07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/example/images/icon_07.png -------------------------------------------------------------------------------- /example/images/icon_08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/example/images/icon_08.png -------------------------------------------------------------------------------- /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/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 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 15 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 16 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 17 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 18 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 19 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 20 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 21 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXCopyFilesBuildPhase section */ 25 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 26 | isa = PBXCopyFilesBuildPhase; 27 | buildActionMask = 2147483647; 28 | dstPath = ""; 29 | dstSubfolderSpec = 10; 30 | files = ( 31 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 32 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 33 | ); 34 | name = "Embed Frameworks"; 35 | runOnlyForDeploymentPostprocessing = 0; 36 | }; 37 | /* End PBXCopyFilesBuildPhase section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 41 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 42 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 43 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 45 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 46 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 47 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 48 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 49 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 50 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 52 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 53 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 54 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 55 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | /* End PBXFileReference section */ 57 | 58 | /* Begin PBXFrameworksBuildPhase section */ 59 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 64 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXFrameworksBuildPhase section */ 69 | 70 | /* Begin PBXGroup section */ 71 | 9740EEB11CF90186004384FC /* Flutter */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 3B80C3931E831B6300D905FE /* App.framework */, 75 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 76 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 77 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 78 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 79 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 80 | ); 81 | name = Flutter; 82 | sourceTree = ""; 83 | }; 84 | 97C146E51CF9000F007C117D = { 85 | isa = PBXGroup; 86 | children = ( 87 | 9740EEB11CF90186004384FC /* Flutter */, 88 | 97C146F01CF9000F007C117D /* Runner */, 89 | 97C146EF1CF9000F007C117D /* Products */, 90 | ); 91 | sourceTree = ""; 92 | }; 93 | 97C146EF1CF9000F007C117D /* Products */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 97C146EE1CF9000F007C117D /* Runner.app */, 97 | ); 98 | name = Products; 99 | sourceTree = ""; 100 | }; 101 | 97C146F01CF9000F007C117D /* Runner */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 105 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 106 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 107 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 108 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 109 | 97C147021CF9000F007C117D /* Info.plist */, 110 | 97C146F11CF9000F007C117D /* Supporting Files */, 111 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 112 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 113 | ); 114 | path = Runner; 115 | sourceTree = ""; 116 | }; 117 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 97C146F21CF9000F007C117D /* main.m */, 121 | ); 122 | name = "Supporting Files"; 123 | sourceTree = ""; 124 | }; 125 | /* End PBXGroup section */ 126 | 127 | /* Begin PBXNativeTarget section */ 128 | 97C146ED1CF9000F007C117D /* Runner */ = { 129 | isa = PBXNativeTarget; 130 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 131 | buildPhases = ( 132 | 9740EEB61CF901F6004384FC /* Run Script */, 133 | 97C146EA1CF9000F007C117D /* Sources */, 134 | 97C146EB1CF9000F007C117D /* Frameworks */, 135 | 97C146EC1CF9000F007C117D /* Resources */, 136 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 137 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 138 | ); 139 | buildRules = ( 140 | ); 141 | dependencies = ( 142 | ); 143 | name = Runner; 144 | productName = Runner; 145 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 146 | productType = "com.apple.product-type.application"; 147 | }; 148 | /* End PBXNativeTarget section */ 149 | 150 | /* Begin PBXProject section */ 151 | 97C146E61CF9000F007C117D /* Project object */ = { 152 | isa = PBXProject; 153 | attributes = { 154 | LastUpgradeCheck = 0910; 155 | ORGANIZATIONNAME = "The Chromium Authors"; 156 | TargetAttributes = { 157 | 97C146ED1CF9000F007C117D = { 158 | CreatedOnToolsVersion = 7.3.1; 159 | DevelopmentTeam = 58B485HG52; 160 | ProvisioningStyle = Manual; 161 | }; 162 | }; 163 | }; 164 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 165 | compatibilityVersion = "Xcode 3.2"; 166 | developmentRegion = English; 167 | hasScannedForEncodings = 0; 168 | knownRegions = ( 169 | en, 170 | Base, 171 | ); 172 | mainGroup = 97C146E51CF9000F007C117D; 173 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 174 | projectDirPath = ""; 175 | projectRoot = ""; 176 | targets = ( 177 | 97C146ED1CF9000F007C117D /* Runner */, 178 | ); 179 | }; 180 | /* End PBXProject section */ 181 | 182 | /* Begin PBXResourcesBuildPhase section */ 183 | 97C146EC1CF9000F007C117D /* Resources */ = { 184 | isa = PBXResourcesBuildPhase; 185 | buildActionMask = 2147483647; 186 | files = ( 187 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 188 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 189 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 190 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 191 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 192 | ); 193 | runOnlyForDeploymentPostprocessing = 0; 194 | }; 195 | /* End PBXResourcesBuildPhase section */ 196 | 197 | /* Begin PBXShellScriptBuildPhase section */ 198 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 199 | isa = PBXShellScriptBuildPhase; 200 | buildActionMask = 2147483647; 201 | files = ( 202 | ); 203 | inputPaths = ( 204 | ); 205 | name = "Thin Binary"; 206 | outputPaths = ( 207 | ); 208 | runOnlyForDeploymentPostprocessing = 0; 209 | shellPath = /bin/sh; 210 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 211 | }; 212 | 9740EEB61CF901F6004384FC /* Run Script */ = { 213 | isa = PBXShellScriptBuildPhase; 214 | buildActionMask = 2147483647; 215 | files = ( 216 | ); 217 | inputPaths = ( 218 | ); 219 | name = "Run Script"; 220 | outputPaths = ( 221 | ); 222 | runOnlyForDeploymentPostprocessing = 0; 223 | shellPath = /bin/sh; 224 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 225 | }; 226 | /* End PBXShellScriptBuildPhase section */ 227 | 228 | /* Begin PBXSourcesBuildPhase section */ 229 | 97C146EA1CF9000F007C117D /* Sources */ = { 230 | isa = PBXSourcesBuildPhase; 231 | buildActionMask = 2147483647; 232 | files = ( 233 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 234 | 97C146F31CF9000F007C117D /* main.m in Sources */, 235 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 236 | ); 237 | runOnlyForDeploymentPostprocessing = 0; 238 | }; 239 | /* End PBXSourcesBuildPhase section */ 240 | 241 | /* Begin PBXVariantGroup section */ 242 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 243 | isa = PBXVariantGroup; 244 | children = ( 245 | 97C146FB1CF9000F007C117D /* Base */, 246 | ); 247 | name = Main.storyboard; 248 | sourceTree = ""; 249 | }; 250 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 251 | isa = PBXVariantGroup; 252 | children = ( 253 | 97C147001CF9000F007C117D /* Base */, 254 | ); 255 | name = LaunchScreen.storyboard; 256 | sourceTree = ""; 257 | }; 258 | /* End PBXVariantGroup section */ 259 | 260 | /* Begin XCBuildConfiguration section */ 261 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 262 | isa = XCBuildConfiguration; 263 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 264 | buildSettings = { 265 | ALWAYS_SEARCH_USER_PATHS = NO; 266 | CLANG_ANALYZER_NONNULL = YES; 267 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 268 | CLANG_CXX_LIBRARY = "libc++"; 269 | CLANG_ENABLE_MODULES = YES; 270 | CLANG_ENABLE_OBJC_ARC = YES; 271 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 272 | CLANG_WARN_BOOL_CONVERSION = YES; 273 | CLANG_WARN_COMMA = YES; 274 | CLANG_WARN_CONSTANT_CONVERSION = YES; 275 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 276 | CLANG_WARN_EMPTY_BODY = YES; 277 | CLANG_WARN_ENUM_CONVERSION = YES; 278 | CLANG_WARN_INFINITE_RECURSION = YES; 279 | CLANG_WARN_INT_CONVERSION = YES; 280 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 281 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 282 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 283 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 284 | CLANG_WARN_STRICT_PROTOTYPES = YES; 285 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 286 | CLANG_WARN_UNREACHABLE_CODE = YES; 287 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 288 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 289 | COPY_PHASE_STRIP = NO; 290 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 291 | ENABLE_NS_ASSERTIONS = NO; 292 | ENABLE_STRICT_OBJC_MSGSEND = YES; 293 | GCC_C_LANGUAGE_STANDARD = gnu99; 294 | GCC_NO_COMMON_BLOCKS = YES; 295 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 296 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 297 | GCC_WARN_UNDECLARED_SELECTOR = YES; 298 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 299 | GCC_WARN_UNUSED_FUNCTION = YES; 300 | GCC_WARN_UNUSED_VARIABLE = YES; 301 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 302 | MTL_ENABLE_DEBUG_INFO = NO; 303 | SDKROOT = iphoneos; 304 | TARGETED_DEVICE_FAMILY = "1,2"; 305 | VALIDATE_PRODUCT = YES; 306 | }; 307 | name = Profile; 308 | }; 309 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 310 | isa = XCBuildConfiguration; 311 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 312 | buildSettings = { 313 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 314 | CODE_SIGN_IDENTITY = "iPhone Distribution"; 315 | CODE_SIGN_STYLE = Manual; 316 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 317 | DEVELOPMENT_TEAM = 58B485HG52; 318 | ENABLE_BITCODE = NO; 319 | FRAMEWORK_SEARCH_PATHS = ( 320 | "$(inherited)", 321 | "$(PROJECT_DIR)/Flutter", 322 | ); 323 | INFOPLIST_FILE = Runner/Info.plist; 324 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 325 | LIBRARY_SEARCH_PATHS = ( 326 | "$(inherited)", 327 | "$(PROJECT_DIR)/Flutter", 328 | ); 329 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example; 330 | PRODUCT_NAME = "$(TARGET_NAME)"; 331 | PROVISIONING_PROFILE_SPECIFIER = Wildcard_AdHot_Profile; 332 | TARGETED_DEVICE_FAMILY = 1; 333 | VERSIONING_SYSTEM = "apple-generic"; 334 | }; 335 | name = Profile; 336 | }; 337 | 97C147031CF9000F007C117D /* Debug */ = { 338 | isa = XCBuildConfiguration; 339 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 340 | buildSettings = { 341 | ALWAYS_SEARCH_USER_PATHS = NO; 342 | CLANG_ANALYZER_NONNULL = YES; 343 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 344 | CLANG_CXX_LIBRARY = "libc++"; 345 | CLANG_ENABLE_MODULES = YES; 346 | CLANG_ENABLE_OBJC_ARC = YES; 347 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 348 | CLANG_WARN_BOOL_CONVERSION = YES; 349 | CLANG_WARN_COMMA = YES; 350 | CLANG_WARN_CONSTANT_CONVERSION = YES; 351 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 352 | CLANG_WARN_EMPTY_BODY = YES; 353 | CLANG_WARN_ENUM_CONVERSION = YES; 354 | CLANG_WARN_INFINITE_RECURSION = YES; 355 | CLANG_WARN_INT_CONVERSION = YES; 356 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 357 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 358 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 359 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 360 | CLANG_WARN_STRICT_PROTOTYPES = YES; 361 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 362 | CLANG_WARN_UNREACHABLE_CODE = YES; 363 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 364 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 365 | COPY_PHASE_STRIP = NO; 366 | DEBUG_INFORMATION_FORMAT = dwarf; 367 | ENABLE_STRICT_OBJC_MSGSEND = YES; 368 | ENABLE_TESTABILITY = YES; 369 | GCC_C_LANGUAGE_STANDARD = gnu99; 370 | GCC_DYNAMIC_NO_PIC = NO; 371 | GCC_NO_COMMON_BLOCKS = YES; 372 | GCC_OPTIMIZATION_LEVEL = 0; 373 | GCC_PREPROCESSOR_DEFINITIONS = ( 374 | "DEBUG=1", 375 | "$(inherited)", 376 | ); 377 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 378 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 379 | GCC_WARN_UNDECLARED_SELECTOR = YES; 380 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 381 | GCC_WARN_UNUSED_FUNCTION = YES; 382 | GCC_WARN_UNUSED_VARIABLE = YES; 383 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 384 | MTL_ENABLE_DEBUG_INFO = YES; 385 | ONLY_ACTIVE_ARCH = YES; 386 | SDKROOT = iphoneos; 387 | TARGETED_DEVICE_FAMILY = "1,2"; 388 | }; 389 | name = Debug; 390 | }; 391 | 97C147041CF9000F007C117D /* Release */ = { 392 | isa = XCBuildConfiguration; 393 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 394 | buildSettings = { 395 | ALWAYS_SEARCH_USER_PATHS = NO; 396 | CLANG_ANALYZER_NONNULL = YES; 397 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 398 | CLANG_CXX_LIBRARY = "libc++"; 399 | CLANG_ENABLE_MODULES = YES; 400 | CLANG_ENABLE_OBJC_ARC = YES; 401 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 402 | CLANG_WARN_BOOL_CONVERSION = YES; 403 | CLANG_WARN_COMMA = YES; 404 | CLANG_WARN_CONSTANT_CONVERSION = YES; 405 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 406 | CLANG_WARN_EMPTY_BODY = YES; 407 | CLANG_WARN_ENUM_CONVERSION = YES; 408 | CLANG_WARN_INFINITE_RECURSION = YES; 409 | CLANG_WARN_INT_CONVERSION = YES; 410 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 411 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 412 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 413 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 414 | CLANG_WARN_STRICT_PROTOTYPES = YES; 415 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 416 | CLANG_WARN_UNREACHABLE_CODE = YES; 417 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 418 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 419 | COPY_PHASE_STRIP = NO; 420 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 421 | ENABLE_NS_ASSERTIONS = NO; 422 | ENABLE_STRICT_OBJC_MSGSEND = YES; 423 | GCC_C_LANGUAGE_STANDARD = gnu99; 424 | GCC_NO_COMMON_BLOCKS = YES; 425 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 426 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 427 | GCC_WARN_UNDECLARED_SELECTOR = YES; 428 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 429 | GCC_WARN_UNUSED_FUNCTION = YES; 430 | GCC_WARN_UNUSED_VARIABLE = YES; 431 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 432 | MTL_ENABLE_DEBUG_INFO = NO; 433 | SDKROOT = iphoneos; 434 | TARGETED_DEVICE_FAMILY = "1,2"; 435 | VALIDATE_PRODUCT = YES; 436 | }; 437 | name = Release; 438 | }; 439 | 97C147061CF9000F007C117D /* Debug */ = { 440 | isa = XCBuildConfiguration; 441 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 442 | buildSettings = { 443 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 444 | CODE_SIGN_IDENTITY = "iPhone Developer"; 445 | CODE_SIGN_STYLE = Manual; 446 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 447 | DEVELOPMENT_TEAM = 58B485HG52; 448 | ENABLE_BITCODE = NO; 449 | FRAMEWORK_SEARCH_PATHS = ( 450 | "$(inherited)", 451 | "$(PROJECT_DIR)/Flutter", 452 | ); 453 | INFOPLIST_FILE = Runner/Info.plist; 454 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 455 | LIBRARY_SEARCH_PATHS = ( 456 | "$(inherited)", 457 | "$(PROJECT_DIR)/Flutter", 458 | ); 459 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example; 460 | PRODUCT_NAME = "$(TARGET_NAME)"; 461 | PROVISIONING_PROFILE_SPECIFIER = Wildcard_Dev_Profile; 462 | TARGETED_DEVICE_FAMILY = 1; 463 | VERSIONING_SYSTEM = "apple-generic"; 464 | }; 465 | name = Debug; 466 | }; 467 | 97C147071CF9000F007C117D /* Release */ = { 468 | isa = XCBuildConfiguration; 469 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 470 | buildSettings = { 471 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 472 | CODE_SIGN_IDENTITY = "iPhone Distribution"; 473 | CODE_SIGN_STYLE = Manual; 474 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 475 | DEVELOPMENT_TEAM = 58B485HG52; 476 | ENABLE_BITCODE = NO; 477 | FRAMEWORK_SEARCH_PATHS = ( 478 | "$(inherited)", 479 | "$(PROJECT_DIR)/Flutter", 480 | ); 481 | INFOPLIST_FILE = Runner/Info.plist; 482 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 483 | LIBRARY_SEARCH_PATHS = ( 484 | "$(inherited)", 485 | "$(PROJECT_DIR)/Flutter", 486 | ); 487 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example; 488 | PRODUCT_NAME = "$(TARGET_NAME)"; 489 | PROVISIONING_PROFILE_SPECIFIER = Wildcard_AdHot_Profile; 490 | TARGETED_DEVICE_FAMILY = 1; 491 | VERSIONING_SYSTEM = "apple-generic"; 492 | }; 493 | name = Release; 494 | }; 495 | /* End XCBuildConfiguration section */ 496 | 497 | /* Begin XCConfigurationList section */ 498 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 499 | isa = XCConfigurationList; 500 | buildConfigurations = ( 501 | 97C147031CF9000F007C117D /* Debug */, 502 | 97C147041CF9000F007C117D /* Release */, 503 | 249021D3217E4FDB00AE95B9 /* Profile */, 504 | ); 505 | defaultConfigurationIsVisible = 0; 506 | defaultConfigurationName = Release; 507 | }; 508 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 509 | isa = XCConfigurationList; 510 | buildConfigurations = ( 511 | 97C147061CF9000F007C117D /* Debug */, 512 | 97C147071CF9000F007C117D /* Release */, 513 | 249021D4217E4FDB00AE95B9 /* Profile */, 514 | ); 515 | defaultConfigurationIsVisible = 0; 516 | defaultConfigurationName = Release; 517 | }; 518 | /* End XCConfigurationList section */ 519 | }; 520 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 521 | } 522 | -------------------------------------------------------------------------------- /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.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildSystemType 6 | Original 7 | 8 | 9 | -------------------------------------------------------------------------------- /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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenfanfang/flutter_tableview/d235e33fcc55171e32348ec7c7794a26c1c1faf5/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 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | UIInterfaceOrientationPortraitUpsideDown 35 | 36 | UISupportedInterfaceOrientations~ipad 37 | 38 | UIInterfaceOrientationPortrait 39 | UIInterfaceOrientationPortraitUpsideDown 40 | UIInterfaceOrientationLandscapeLeft 41 | UIInterfaceOrientationLandscapeRight 42 | 43 | UIViewControllerBasedStatusBarAppearance 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /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/demo_page/simple_demo_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_tableview/flutter_tableview.dart'; 3 | 4 | class SimpleDemoPage extends StatelessWidget { 5 | @override 6 | Widget build(BuildContext context) { 7 | return Scaffold( 8 | appBar: AppBar( 9 | title: Text('simple demo'), 10 | ), 11 | body: SimpleDemoPageBody(), 12 | ); 13 | } 14 | } 15 | 16 | class SimpleDemoPageBody extends StatefulWidget { 17 | @override 18 | _SimpleDemoPageBodyState createState() => _SimpleDemoPageBodyState(); 19 | } 20 | 21 | class _SimpleDemoPageBodyState extends State { 22 | // How many section. 23 | int sectionCount = 3; 24 | 25 | // Get row count. 26 | int _rowCountAtSection(int section) { 27 | if (section == 0) { 28 | return 5; 29 | } else if (section == 1) { 30 | return 10; 31 | } else { 32 | return 20; 33 | } 34 | } 35 | 36 | // Section header widget builder. 37 | Widget _sectionHeaderBuilder(BuildContext context, int section) { 38 | return InkWell( 39 | onTap: () { 40 | print('click section header. -> section:$section'); 41 | }, 42 | child: Container( 43 | alignment: Alignment.centerLeft, 44 | padding: EdgeInsets.only(left: 16.0), 45 | color: Color.fromRGBO(220, 220, 220, 1), 46 | height: 100, 47 | child: Text('I am section header -> section:$section'), 48 | ), 49 | ); 50 | } 51 | 52 | // cell item widget builder. 53 | Widget _cellBuilder(BuildContext context, int section, int row) { 54 | return InkWell( 55 | onTap: () { 56 | print('click cell item. -> section:$section row:$row'); 57 | }, 58 | child: Container( 59 | padding: EdgeInsets.only(left: 16.0), 60 | alignment: Alignment.centerLeft, 61 | decoration: BoxDecoration( 62 | border: Border( 63 | bottom: BorderSide( 64 | color: Color.fromRGBO(240, 240, 240, 1), 65 | ))), 66 | height: 50.0, 67 | child: Text('I am cell -> section:$section row$row'), 68 | ), 69 | ); 70 | } 71 | 72 | // Each section header height; 73 | double _sectionHeaderHeight(BuildContext context, int section) { 74 | return 50.0; 75 | } 76 | 77 | // Each cell item widget height. 78 | double _cellHeight(BuildContext context, int section, int row) { 79 | return 50.0; 80 | } 81 | 82 | @override 83 | Widget build(BuildContext context) { 84 | return Container( 85 | //FlutterTableView 86 | child: FlutterTableView( 87 | sectionCount: sectionCount, 88 | rowCountAtSection: _rowCountAtSection, 89 | sectionHeaderBuilder: _sectionHeaderBuilder, 90 | cellBuilder: _cellBuilder, 91 | sectionHeaderHeight: _sectionHeaderHeight, 92 | cellHeight: _cellHeight, 93 | ), 94 | ); 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /example/lib/demo_page/wrap_refresh_demo_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'dart:async'; 3 | import 'package:flutter_tableview/flutter_tableview.dart'; 4 | 5 | //tool 6 | import 'package:example/demo_tool/route_tool.dart'; 7 | 8 | //easyrefresh 9 | import 'package:flutter_easyrefresh/easy_refresh.dart'; 10 | import 'package:flutter_easyrefresh/material_header.dart'; 11 | import 'package:flutter_easyrefresh/material_footer.dart'; 12 | 13 | class WrapRefreshDemoPage extends StatelessWidget { 14 | @override 15 | Widget build(BuildContext context) { 16 | return Scaffold( 17 | appBar: AppBar( 18 | title: Text('wrap refresh demo'), 19 | ), 20 | body: WrapRefreshDemoPageBody(), 21 | ); 22 | } 23 | } 24 | 25 | class WrapRefreshDemoPageBody extends StatefulWidget { 26 | @override 27 | _WrapRefreshDemoPageBodyState createState() => 28 | _WrapRefreshDemoPageBodyState(); 29 | } 30 | 31 | class _WrapRefreshDemoPageBodyState extends State { 32 | //key for flutter_easyrefresh 33 | //about flutter_easyrefresh : https://github.com/xuelongqy/flutter_easyrefresh 34 | GlobalKey _easyRefreshKey = 35 | new GlobalKey(); 36 | GlobalKey _headerKey = 37 | new GlobalKey(); 38 | GlobalKey _footerKey = 39 | new GlobalKey(); 40 | 41 | //if dataSourceList data changed, must call setState(() {}); 42 | List> dataSourceList = [ 43 | [ 44 | 'images/icon_00.png', 45 | 'images/icon_01.png', 46 | 'images/icon_02.png', 47 | 'images/icon_03.png', 48 | ], 49 | [ 50 | 'images/icon_04.png', 51 | 'images/icon_05.png', 52 | 'images/icon_06.png', 53 | 'images/icon_07.png', 54 | 'images/icon_08.png', 55 | ], 56 | ]; 57 | final double widthHeightRatio = 700.0 / 310.0; 58 | final double extraPaddingBottom = 30.0; 59 | 60 | //============ 61 | // functions 62 | //============ 63 | int _rowCountAtSection(int section) { 64 | return this.dataSourceList[section].length; 65 | } 66 | 67 | Widget _sectionHeaderBuilder(BuildContext context, int section) { 68 | String message = section == 0 ? 'HOT SELL' : 'NEW'; 69 | 70 | return InkWell( 71 | onTap: () { 72 | print('click section header. -> section:$section'); 73 | }, 74 | child: Container( 75 | color: Color.fromRGBO(220, 220, 220, 1), 76 | alignment: Alignment.center, 77 | height: 100, 78 | child: Text( 79 | '$message', 80 | style: TextStyle(color: Colors.brown, fontWeight: FontWeight.w700), 81 | ), 82 | ), 83 | ); 84 | } 85 | 86 | Widget _cellBuilder(BuildContext context, int section, int row) { 87 | List sectionDataList = this.dataSourceList[section]; 88 | double paddingBottom = 89 | row != (sectionDataList.length - 1) ? 0 : this.extraPaddingBottom; 90 | 91 | return InkWell( 92 | onTap: () { 93 | print('click cell item. -> section:$section row:$row'); 94 | }, 95 | child: Container( 96 | padding: EdgeInsets.fromLTRB(30, 30, 30, paddingBottom), 97 | child: ClipRRect( 98 | borderRadius: BorderRadius.all(Radius.circular(10.0)), 99 | child: Image.asset( 100 | '${sectionDataList[row]}', 101 | fit: BoxFit.cover, 102 | ), 103 | )), 104 | ); 105 | } 106 | 107 | double _sectionHeaderHeight(BuildContext context, int section) { 108 | return 60; 109 | } 110 | 111 | double _cellHeight(BuildContext context, int section, int row) { 112 | List sectionDataList = this.dataSourceList[section]; 113 | double cellHeight = screenWidth / this.widthHeightRatio; 114 | cellHeight = row != (sectionDataList.length - 1) 115 | ? cellHeight 116 | : cellHeight + this.extraPaddingBottom; 117 | return cellHeight; 118 | } 119 | 120 | Widget _listViewFatherWidgetBuilder(BuildContext context, Widget listView) { 121 | return EasyRefresh( 122 | key: _easyRefreshKey, 123 | limitScroll: true, 124 | refreshHeader: MaterialHeader(key: _headerKey), 125 | refreshFooter: MaterialFooter(key: _footerKey), 126 | onRefresh: () async { 127 | print('onrefresh'); 128 | await Future.delayed(Duration(seconds: 2)); 129 | this.dataSourceList = this.dataSourceList.reversed.toList(); 130 | setState(() {}); 131 | }, 132 | loadMore: () async { 133 | print('loadMore'); 134 | setState(() {}); 135 | }, 136 | child: listView, 137 | ); 138 | } 139 | 140 | @override 141 | Widget build(BuildContext context) { 142 | return Container( 143 | child: FlutterTableView( 144 | sectionCount: this.dataSourceList.length, 145 | rowCountAtSection: _rowCountAtSection, 146 | sectionHeaderBuilder: _sectionHeaderBuilder, 147 | cellBuilder: _cellBuilder, 148 | sectionHeaderHeight: _sectionHeaderHeight, 149 | cellHeight: _cellHeight, 150 | listViewFatherWidgetBuilder: _listViewFatherWidgetBuilder, 151 | ), 152 | ); 153 | } 154 | } 155 | -------------------------------------------------------------------------------- /example/lib/demo_tool/route_tool.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | typedef PopCallback = Function(dynamic value); 4 | 5 | Future push(BuildContext context, Widget page, {String routeName, PopCallback popCallBack}) { 6 | 7 | MaterialPageRoute route = MaterialPageRoute(builder: (BuildContext context){ 8 | 9 | return page; 10 | }); 11 | return Navigator.of(context).push(route).then((onValue){ 12 | 13 | if(popCallBack != null) { 14 | 15 | popCallBack(onValue); 16 | } 17 | }); 18 | } 19 | 20 | void pop(BuildContext context, {var callBackValue}) { 21 | 22 | if(callBackValue != null) { 23 | Navigator.of(context).pop(callBackValue); 24 | } 25 | else { 26 | Navigator.of(context).pop(); 27 | } 28 | } 29 | 30 | void popToPage(BuildContext context, String pageClassName) { 31 | Navigator.of(context).popUntil(ModalRoute.withName(pageClassName)); 32 | } 33 | 34 | 35 | 36 | 37 | 38 | double screenWidth; 39 | double screenHeight; 40 | double pxRatio; 41 | MediaQueryData mediaQuery; 42 | 43 | void initScreen( 44 | {@required BuildContext context}) { 45 | 46 | if(mediaQuery == null) { 47 | mediaQuery = MediaQuery.of(context); 48 | screenWidth = mediaQuery.size.width; 49 | screenHeight = mediaQuery.size.height; 50 | } 51 | } -------------------------------------------------------------------------------- /example/lib/main.dart: -------------------------------------------------------------------------------- 1 | //flutter 2 | import 'package:flutter/material.dart'; 3 | //tool 4 | import 'demo_tool/route_tool.dart'; 5 | //page 6 | import 'demo_page/simple_demo_page.dart'; 7 | import 'demo_page/wrap_refresh_demo_page.dart'; 8 | 9 | void main() => runApp(App()); 10 | 11 | class App extends StatelessWidget { 12 | @override 13 | Widget build(BuildContext context) { 14 | return MaterialApp( 15 | debugShowCheckedModeBanner: false, 16 | home: Home(), 17 | ); 18 | } 19 | } 20 | 21 | class Home extends StatelessWidget { 22 | @override 23 | Widget build(BuildContext context) { 24 | initScreen(context: context); 25 | return Scaffold( 26 | appBar: AppBar( 27 | title: Text('FlutterTableView'), 28 | ), 29 | body: Center( 30 | child: Column( 31 | mainAxisAlignment: MainAxisAlignment.center, 32 | children: [ 33 | FlatButton( 34 | onPressed: () { 35 | push(context, SimpleDemoPage()); 36 | }, 37 | child: Text('simple demo'), 38 | ), 39 | FlatButton( 40 | 41 | onPressed: () { 42 | push(context, WrapRefreshDemoPage()); 43 | 44 | }, 45 | child: Text('wrap refresh demo'), 46 | ), 47 | ], 48 | ), 49 | ), 50 | ); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /example/pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://www.dartlang.org/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.flutter-io.cn" 9 | source: hosted 10 | version: "2.1.0" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.flutter-io.cn" 16 | source: hosted 17 | version: "1.0.4" 18 | charcode: 19 | dependency: transitive 20 | description: 21 | name: charcode 22 | url: "https://pub.flutter-io.cn" 23 | source: hosted 24 | version: "1.1.2" 25 | collection: 26 | dependency: transitive 27 | description: 28 | name: collection 29 | url: "https://pub.flutter-io.cn" 30 | source: hosted 31 | version: "1.14.11" 32 | cupertino_icons: 33 | dependency: "direct main" 34 | description: 35 | name: cupertino_icons 36 | url: "https://pub.flutter-io.cn" 37 | source: hosted 38 | version: "0.1.2" 39 | flutter: 40 | dependency: "direct main" 41 | description: flutter 42 | source: sdk 43 | version: "0.0.0" 44 | flutter_easyrefresh: 45 | dependency: "direct main" 46 | description: 47 | name: flutter_easyrefresh 48 | url: "https://pub.flutter-io.cn" 49 | source: hosted 50 | version: "1.2.7" 51 | flutter_tableview: 52 | dependency: "direct main" 53 | description: 54 | path: ".." 55 | relative: true 56 | source: path 57 | version: "1.0.1" 58 | flutter_test: 59 | dependency: "direct dev" 60 | description: flutter 61 | source: sdk 62 | version: "0.0.0" 63 | matcher: 64 | dependency: transitive 65 | description: 66 | name: matcher 67 | url: "https://pub.flutter-io.cn" 68 | source: hosted 69 | version: "0.12.5" 70 | meta: 71 | dependency: transitive 72 | description: 73 | name: meta 74 | url: "https://pub.flutter-io.cn" 75 | source: hosted 76 | version: "1.1.6" 77 | path: 78 | dependency: transitive 79 | description: 80 | name: path 81 | url: "https://pub.flutter-io.cn" 82 | source: hosted 83 | version: "1.6.2" 84 | pedantic: 85 | dependency: transitive 86 | description: 87 | name: pedantic 88 | url: "https://pub.flutter-io.cn" 89 | source: hosted 90 | version: "1.5.0" 91 | quiver: 92 | dependency: transitive 93 | description: 94 | name: quiver 95 | url: "https://pub.flutter-io.cn" 96 | source: hosted 97 | version: "2.0.2" 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.flutter-io.cn" 108 | source: hosted 109 | version: "1.5.5" 110 | stack_trace: 111 | dependency: transitive 112 | description: 113 | name: stack_trace 114 | url: "https://pub.flutter-io.cn" 115 | source: hosted 116 | version: "1.9.3" 117 | stream_channel: 118 | dependency: transitive 119 | description: 120 | name: stream_channel 121 | url: "https://pub.flutter-io.cn" 122 | source: hosted 123 | version: "2.0.0" 124 | string_scanner: 125 | dependency: transitive 126 | description: 127 | name: string_scanner 128 | url: "https://pub.flutter-io.cn" 129 | source: hosted 130 | version: "1.0.4" 131 | term_glyph: 132 | dependency: transitive 133 | description: 134 | name: term_glyph 135 | url: "https://pub.flutter-io.cn" 136 | source: hosted 137 | version: "1.1.0" 138 | test_api: 139 | dependency: transitive 140 | description: 141 | name: test_api 142 | url: "https://pub.flutter-io.cn" 143 | source: hosted 144 | version: "0.2.4" 145 | typed_data: 146 | dependency: transitive 147 | description: 148 | name: typed_data 149 | url: "https://pub.flutter-io.cn" 150 | source: hosted 151 | version: "1.1.6" 152 | vector_math: 153 | dependency: transitive 154 | description: 155 | name: vector_math 156 | url: "https://pub.flutter-io.cn" 157 | source: hosted 158 | version: "2.0.8" 159 | sdks: 160 | dart: ">=2.2.0 <3.0.0" 161 | flutter: ">=0.1.4 <2.0.0" 162 | -------------------------------------------------------------------------------- /example/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: example 2 | description: Flutter tableview example. 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # In Android, build-name is used as versionName while build-number used as versionCode. 10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 12 | # Read more about iOS versioning at 13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 14 | version: 1.0.0+1 15 | 16 | environment: 17 | sdk: ">=2.1.0 <3.0.0" 18 | 19 | dependencies: 20 | flutter: 21 | sdk: flutter 22 | 23 | 24 | # The following adds the Cupertino Icons font to your application. 25 | # Use with the CupertinoIcons class for iOS style icons. 26 | cupertino_icons: ^0.1.2 27 | flutter_easyrefresh: ^1.2.7 28 | flutter_tableview: 29 | path: ../ 30 | 31 | 32 | 33 | dev_dependencies: 34 | flutter_test: 35 | sdk: flutter 36 | 37 | 38 | # For information on the generic Dart part of this file, see the 39 | # following page: https://www.dartlang.org/tools/pub/pubspec 40 | 41 | # The following section is specific to Flutter. 42 | flutter: 43 | 44 | # The following line ensures that the Material Icons font is 45 | # included with your application, so that you can use the icons in 46 | # the material Icons class. 47 | uses-material-design: true 48 | 49 | assets: 50 | - images/icon_00.png 51 | - images/icon_01.png 52 | - images/icon_02.png 53 | - images/icon_03.png 54 | - images/icon_04.png 55 | - images/icon_05.png 56 | - images/icon_06.png 57 | - images/icon_07.png 58 | - images/icon_08.png 59 | # To add assets to your application, add an assets section, like this: 60 | # assets: 61 | # - images/a_dot_burr.jpeg 62 | # - images/a_dot_ham.jpeg 63 | 64 | # An image asset can refer to one or more resolution-specific "variants", see 65 | # https://flutter.dev/assets-and-images/#resolution-aware. 66 | 67 | # For details regarding adding assets from package dependencies, see 68 | # https://flutter.dev/assets-and-images/#from-packages 69 | 70 | # To add custom fonts to your application, add a fonts section here, 71 | # in this "flutter" section. Each entry in this list should have a 72 | # "family" key with the font family name, and a "fonts" key with a 73 | # list giving the asset and other descriptors for the font. For 74 | # example: 75 | # fonts: 76 | # - family: Schyler 77 | # fonts: 78 | # - asset: fonts/Schyler-Regular.ttf 79 | # - asset: fonts/Schyler-Italic.ttf 80 | # style: italic 81 | # - family: Trajan Pro 82 | # fonts: 83 | # - asset: fonts/TrajanPro.ttf 84 | # - asset: fonts/TrajanPro_Bold.ttf 85 | # weight: 700 86 | # 87 | # For details regarding fonts from package dependencies, 88 | # see https://flutter.dev/custom-fonts/#from-packages 89 | -------------------------------------------------------------------------------- /example/test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:example/main.dart'; 12 | 13 | void main() { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /lib/flutter_tableview.dart: -------------------------------------------------------------------------------- 1 | library flutter_tableview; 2 | 3 | import 'package:flutter/material.dart'; 4 | 5 | typedef int RowCountAtSection(int section); 6 | typedef Widget ListViewFatherWidgetBuilder( 7 | BuildContext context, Widget canScrollWidget); 8 | typedef Widget SectionHeaderBuilder(BuildContext context, int section); 9 | typedef Widget CellBuilder(BuildContext context, int section, int row); 10 | typedef double CellHeight(BuildContext context, int section, int row); 11 | typedef double SectionHeaderHeight(BuildContext context, int section); 12 | 13 | const String ErorrFlagBegin = 14 | '\n\n\n====================FlutterTableView Error========================\n\n\n\n'; 15 | 16 | const String ErorrFlagEnd = 17 | '\n\n\n\n\n==================================================================\n\n\n\n.'; 18 | 19 | class FlutterTableView extends StatefulWidget { 20 | FlutterTableView({ 21 | @required this.sectionCount, 22 | @required this.rowCountAtSection, 23 | @required this.sectionHeaderBuilder, 24 | @required this.cellBuilder, 25 | @required this.sectionHeaderHeight, 26 | @required this.cellHeight, 27 | this.listViewFatherWidgetBuilder, 28 | this.controller, 29 | this.physics, 30 | this.shrinkWrap = false, 31 | this.padding = const EdgeInsets.all(0.0), 32 | this.cacheExtent = 50.0, 33 | this.backgroundColor = Colors.transparent, 34 | }) : assert( 35 | (sectionCount != null && sectionCount > 0), 36 | '$ErorrFlagBegin sectionCount must > 0 and could not be null. $ErorrFlagEnd', 37 | ), 38 | assert( 39 | (rowCountAtSection != null), 40 | '$ErorrFlagBegin function rowCountAtSection could not be null. $ErorrFlagEnd', 41 | ), 42 | assert( 43 | (sectionHeaderBuilder != null), 44 | '$ErorrFlagBegin function sectionHeaderBuilder could not be null. $ErorrFlagEnd', 45 | ), 46 | assert( 47 | (cellBuilder != null), 48 | '$ErorrFlagBegin function cellBuilder could not be null. $ErorrFlagEnd', 49 | ), 50 | assert( 51 | (sectionHeaderHeight != null), 52 | '$ErorrFlagBegin function sectionHeaderHeight could not be null. $ErorrFlagEnd', 53 | ), 54 | assert( 55 | (cellHeight != null), 56 | '$ErorrFlagBegin function cellHeight could not be null. $ErorrFlagEnd', 57 | ); 58 | 59 | @override 60 | _FlutterTableViewState createState() { 61 | return _FlutterTableViewState(); 62 | } 63 | 64 | /// How many section. 65 | final int sectionCount; 66 | 67 | /// How many item in each section. 68 | final RowCountAtSection rowCountAtSection; 69 | 70 | /// You can through sectionHeaderBuilder create section header widget. 71 | /// Each section has at most one headWidget. 72 | /// In a special section, if you don't need section header widget, you can return null. 73 | final SectionHeaderBuilder sectionHeaderBuilder; 74 | 75 | /// You can through cellBuilder create items. 76 | final CellBuilder cellBuilder; 77 | 78 | /// return each item widget height. 79 | final CellHeight cellHeight; 80 | 81 | /// return each section header widget height. 82 | final SectionHeaderHeight sectionHeaderHeight; 83 | 84 | /// You can wrap a widget for listView 85 | final ListViewFatherWidgetBuilder listViewFatherWidgetBuilder; 86 | 87 | /// see ScrollView controller 88 | final ScrollController controller; 89 | 90 | /// see ScrollView physics 91 | final ScrollPhysics physics; 92 | 93 | /// see ScrollView shrinkWrap 94 | final bool shrinkWrap; 95 | 96 | final EdgeInsetsGeometry padding; 97 | 98 | /// see ScrollView cacheExtent 99 | final double cacheExtent; 100 | 101 | final Color backgroundColor; 102 | } 103 | 104 | class _FlutterTableViewState extends State { 105 | //////////////////////////////////////////////////////////////////// 106 | // variables 107 | //////////////////////////////////////////////////////////////////// 108 | SectionHeaderModel currentHeaderModel; 109 | int totalItemCount = 0; 110 | List sectionHeaderList = List(); 111 | List sectionTotalWidgetCountList = List(); 112 | ScrollController scrollController; 113 | ListView listView; 114 | bool insideSetStateFlag = false; 115 | 116 | //////////////////////////////////////////////////////////////////// 117 | // init function 118 | //////////////////////////////////////////////////////////////////// 119 | void _initBaseData() { 120 | this.totalItemCount = 0; 121 | this.sectionHeaderList.clear(); 122 | this.sectionTotalWidgetCountList.clear(); 123 | 124 | double offsetY = 0; 125 | for (int section = 0; section < widget.sectionCount; section++) { 126 | int rowCount = widget.rowCountAtSection(section); 127 | Widget sectionHeader = widget.sectionHeaderBuilder(context, section); 128 | double sectionHeight; 129 | if (sectionHeader != null) { 130 | sectionHeight = this.widget.sectionHeaderHeight(context, section); 131 | } else { 132 | sectionHeight = 0; 133 | } 134 | 135 | double sectionHeaderY = offsetY; 136 | 137 | offsetY += sectionHeight; 138 | 139 | int sectionWidgetCount = sectionHeader == null ? rowCount : rowCount + 1; 140 | sectionTotalWidgetCountList.add(sectionWidgetCount); 141 | this.totalItemCount += sectionWidgetCount; 142 | 143 | for (int row = 0; row < rowCount; row++) { 144 | offsetY += this.widget.cellHeight(context, section, row); 145 | } 146 | 147 | SectionHeaderModel model = SectionHeaderModel( 148 | y: sectionHeaderY, 149 | sectionMaxY: offsetY, 150 | height: sectionHeight, 151 | section: section, 152 | headerWidget: sectionHeader, 153 | ); 154 | sectionHeaderList.add(model); 155 | } 156 | } 157 | 158 | void _initScrollController() { 159 | this.scrollController = this.widget.controller; 160 | if (this.scrollController == null) { 161 | this.scrollController = ScrollController(); 162 | } 163 | 164 | this.scrollController.addListener(() { 165 | double offsetY = this.scrollController.offset; 166 | 167 | if (offsetY <= 0.0) { 168 | this._updateCurrentSectionHeaderModel(null, 0); 169 | } else { 170 | int section = 0; 171 | for (int i = 0; i < this.sectionHeaderList.length; i++) { 172 | SectionHeaderModel model = this.sectionHeaderList[i]; 173 | if (offsetY >= model.y && offsetY <= model.sectionMaxY) { 174 | section = i; 175 | break; 176 | } 177 | } 178 | 179 | SectionHeaderModel model = this.sectionHeaderList[section]; 180 | double delta = model.sectionMaxY - this.scrollController.offset; 181 | double topOffset; 182 | if (delta >= model.height) { 183 | topOffset = 0.0; 184 | } else { 185 | topOffset = delta - model.height; 186 | } 187 | this._updateCurrentSectionHeaderModel(model, topOffset); 188 | } 189 | }); 190 | } 191 | 192 | //////////////////////////////////////////////////////////////////// 193 | // create listView 194 | //////////////////////////////////////////////////////////////////// 195 | void _createListView() { 196 | if(this.insideSetStateFlag == false) { 197 | this._initBaseData(); 198 | } 199 | 200 | this.insideSetStateFlag = false; 201 | 202 | this.listView = ListView.builder( 203 | controller: this.scrollController, 204 | physics: this.widget.physics ?? AlwaysScrollableScrollPhysics(), 205 | shrinkWrap: this.widget.shrinkWrap, 206 | cacheExtent: this.widget.cacheExtent, 207 | itemBuilder: (BuildContext context, int index) { 208 | Widget itemWidget; 209 | RowSectionModel model = this._getRowSectionModel(index); 210 | double height; 211 | if (model.row == 0 && model.haveHeaderWidget) { 212 | itemWidget = this.sectionHeaderList[model.section].headerWidget; 213 | height = this.widget.sectionHeaderHeight(context, model.section); 214 | } else { 215 | int row = model.haveHeaderWidget == false ? model.row : model.row - 1; 216 | itemWidget = this.widget.cellBuilder(context, model.section, row); 217 | height = this.widget.cellHeight(context, model.section, row); 218 | } 219 | 220 | return ConstrainedBox( 221 | constraints: BoxConstraints( 222 | minHeight: height, 223 | maxHeight: height, 224 | ), 225 | child: itemWidget, 226 | ); 227 | }, 228 | itemCount: this.totalItemCount, 229 | ); 230 | } 231 | 232 | //////////////////////////////////////////////////////////////////// 233 | // tool function 234 | //////////////////////////////////////////////////////////////////// 235 | RowSectionModel _getRowSectionModel(int index) { 236 | int passCount = 0; 237 | for (int section = 0; 238 | section < this.sectionTotalWidgetCountList.length; 239 | section++) { 240 | int currentSectionWidgetCount = this.sectionTotalWidgetCountList[section]; 241 | if (index >= passCount && index < passCount + currentSectionWidgetCount) { 242 | int row = index - passCount; 243 | bool haveSectionHeaderWidget = 244 | this.sectionHeaderList[section].headerWidget != null; 245 | RowSectionModel model = RowSectionModel( 246 | section: section, 247 | row: row, 248 | haveHeaderWidget: haveSectionHeaderWidget, 249 | ); 250 | 251 | return model; 252 | } 253 | 254 | passCount += currentSectionWidgetCount; 255 | } 256 | return null; 257 | } 258 | 259 | void _updateCurrentSectionHeaderModel( 260 | SectionHeaderModel model, double topOffset) { 261 | bool needSetState = false; 262 | if (model == null) { 263 | if (this.currentHeaderModel != null) { 264 | this.currentHeaderModel = null; 265 | needSetState = true; 266 | } 267 | } else if (this.currentHeaderModel == null) { 268 | this.currentHeaderModel = model; 269 | this.currentHeaderModel.topOffset = topOffset; 270 | needSetState = true; 271 | } else { 272 | if (model != this.currentHeaderModel) { 273 | this.currentHeaderModel = model; 274 | 275 | needSetState = true; 276 | } else if (model.topOffset != topOffset) { 277 | needSetState = true; 278 | } 279 | 280 | this.currentHeaderModel.topOffset = topOffset; 281 | } 282 | 283 | if (needSetState == true) { 284 | this.insideSetStateFlag = true; 285 | setState(() {}); 286 | } 287 | } 288 | 289 | //////////////////////////////////////////////////////////////////// 290 | // life cycle 291 | //////////////////////////////////////////////////////////////////// 292 | 293 | @override 294 | void dispose() { 295 | // TODO: implement dispose 296 | super.dispose(); 297 | 298 | if (this.widget.controller == null) { 299 | this.scrollController.dispose(); 300 | } 301 | } 302 | 303 | @override 304 | void initState() { 305 | this._initScrollController(); 306 | super.initState(); 307 | } 308 | 309 | @override 310 | Widget build(BuildContext context) { 311 | this._createListView(); 312 | Widget listViewFatherWidget; 313 | if (this.widget.listViewFatherWidgetBuilder != null) { 314 | listViewFatherWidget = 315 | this.widget.listViewFatherWidgetBuilder(context, this.listView); 316 | } 317 | 318 | Widget listViewWidget = listViewFatherWidget ?? this.listView; 319 | 320 | if (this.currentHeaderModel != null && 321 | this.currentHeaderModel.headerWidget != null) { 322 | return Container( 323 | padding: this.widget.padding, 324 | color: widget.backgroundColor, 325 | child: Stack( 326 | children: [ 327 | Container( 328 | color: Colors.transparent, 329 | child: listViewWidget, 330 | ), 331 | Positioned( 332 | top: this.currentHeaderModel.topOffset, 333 | left: 0.0, 334 | right: 0.0, 335 | height: this.currentHeaderModel.height, 336 | child: Container( 337 | color: Colors.white, 338 | child: this.currentHeaderModel.headerWidget, 339 | ), 340 | ), 341 | ], 342 | ), 343 | ); 344 | } 345 | return Container( 346 | padding: this.widget.padding, 347 | color: this.widget.backgroundColor, 348 | child: Stack( 349 | children: [ 350 | Container( 351 | color: Colors.transparent, 352 | child: listViewWidget, 353 | ), 354 | ], 355 | ), 356 | ); 357 | } 358 | } 359 | 360 | //////////////////////////////////////////////////////////////////// 361 | // model class 362 | //////////////////////////////////////////////////////////////////// 363 | 364 | class RowSectionModel { 365 | RowSectionModel({ 366 | @required this.section, 367 | @required this.row, 368 | @required this.haveHeaderWidget, 369 | }); 370 | 371 | final int section; 372 | final int row; 373 | final bool haveHeaderWidget; 374 | } 375 | 376 | class SectionHeaderModel { 377 | SectionHeaderModel({ 378 | this.y, 379 | this.sectionMaxY, 380 | this.height, 381 | this.section, 382 | this.headerWidget, 383 | }); 384 | 385 | final double y; 386 | final double sectionMaxY; 387 | final double height; 388 | final int section; 389 | final Widget headerWidget; 390 | 391 | double topOffset; 392 | } 393 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://www.dartlang.org/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.flutter-io.cn" 9 | source: hosted 10 | version: "2.1.0" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.flutter-io.cn" 16 | source: hosted 17 | version: "1.0.4" 18 | charcode: 19 | dependency: transitive 20 | description: 21 | name: charcode 22 | url: "https://pub.flutter-io.cn" 23 | source: hosted 24 | version: "1.1.2" 25 | collection: 26 | dependency: transitive 27 | description: 28 | name: collection 29 | url: "https://pub.flutter-io.cn" 30 | source: hosted 31 | version: "1.14.11" 32 | flutter: 33 | dependency: "direct main" 34 | description: flutter 35 | source: sdk 36 | version: "0.0.0" 37 | flutter_test: 38 | dependency: "direct dev" 39 | description: flutter 40 | source: sdk 41 | version: "0.0.0" 42 | matcher: 43 | dependency: transitive 44 | description: 45 | name: matcher 46 | url: "https://pub.flutter-io.cn" 47 | source: hosted 48 | version: "0.12.5" 49 | meta: 50 | dependency: transitive 51 | description: 52 | name: meta 53 | url: "https://pub.flutter-io.cn" 54 | source: hosted 55 | version: "1.1.6" 56 | path: 57 | dependency: transitive 58 | description: 59 | name: path 60 | url: "https://pub.flutter-io.cn" 61 | source: hosted 62 | version: "1.6.2" 63 | pedantic: 64 | dependency: transitive 65 | description: 66 | name: pedantic 67 | url: "https://pub.flutter-io.cn" 68 | source: hosted 69 | version: "1.5.0" 70 | quiver: 71 | dependency: transitive 72 | description: 73 | name: quiver 74 | url: "https://pub.flutter-io.cn" 75 | source: hosted 76 | version: "2.0.2" 77 | sky_engine: 78 | dependency: transitive 79 | description: flutter 80 | source: sdk 81 | version: "0.0.99" 82 | source_span: 83 | dependency: transitive 84 | description: 85 | name: source_span 86 | url: "https://pub.flutter-io.cn" 87 | source: hosted 88 | version: "1.5.5" 89 | stack_trace: 90 | dependency: transitive 91 | description: 92 | name: stack_trace 93 | url: "https://pub.flutter-io.cn" 94 | source: hosted 95 | version: "1.9.3" 96 | stream_channel: 97 | dependency: transitive 98 | description: 99 | name: stream_channel 100 | url: "https://pub.flutter-io.cn" 101 | source: hosted 102 | version: "2.0.0" 103 | string_scanner: 104 | dependency: transitive 105 | description: 106 | name: string_scanner 107 | url: "https://pub.flutter-io.cn" 108 | source: hosted 109 | version: "1.0.4" 110 | term_glyph: 111 | dependency: transitive 112 | description: 113 | name: term_glyph 114 | url: "https://pub.flutter-io.cn" 115 | source: hosted 116 | version: "1.1.0" 117 | test_api: 118 | dependency: transitive 119 | description: 120 | name: test_api 121 | url: "https://pub.flutter-io.cn" 122 | source: hosted 123 | version: "0.2.4" 124 | typed_data: 125 | dependency: transitive 126 | description: 127 | name: typed_data 128 | url: "https://pub.flutter-io.cn" 129 | source: hosted 130 | version: "1.1.6" 131 | vector_math: 132 | dependency: transitive 133 | description: 134 | name: vector_math 135 | url: "https://pub.flutter-io.cn" 136 | source: hosted 137 | version: "2.0.8" 138 | sdks: 139 | dart: ">=2.2.0 <3.0.0" 140 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_tableview 2 | description: A flutter widget like iOS UITableview. let listView with section header and each section header will hover at the top. 3 | version: 1.0.1 4 | author: chenfanfang <493336001@qq.com> 5 | homepage: https://github.com/chenfanfang/Flutter_TableView 6 | 7 | environment: 8 | sdk: ">=2.1.0 <3.0.0" 9 | 10 | dependencies: 11 | flutter: 12 | sdk: flutter 13 | 14 | dev_dependencies: 15 | flutter_test: 16 | sdk: flutter 17 | 18 | # For information on the generic Dart part of this file, see the 19 | # following page: https://www.dartlang.org/tools/pub/pubspec 20 | 21 | # The following section is specific to Flutter. 22 | flutter: 23 | 24 | # To add assets to your package, add an assets section, like this: 25 | # assets: 26 | # - images/a_dot_burr.jpeg 27 | # - images/a_dot_ham.jpeg 28 | # 29 | # For details regarding assets in packages, see 30 | # https://flutter.dev/assets-and-images/#from-packages 31 | # 32 | # An image asset can refer to one or more resolution-specific "variants", see 33 | # https://flutter.dev/assets-and-images/#resolution-aware. 34 | 35 | # To add custom fonts to your package, add a fonts section here, 36 | # in this "flutter" section. Each entry in this list should have a 37 | # "family" key with the font family name, and a "fonts" key with a 38 | # list giving the asset and other descriptors for the font. For 39 | # example: 40 | # fonts: 41 | # - family: Schyler 42 | # fonts: 43 | # - asset: fonts/Schyler-Regular.ttf 44 | # - asset: fonts/Schyler-Italic.ttf 45 | # style: italic 46 | # - family: Trajan Pro 47 | # fonts: 48 | # - asset: fonts/TrajanPro.ttf 49 | # - asset: fonts/TrajanPro_Bold.ttf 50 | # weight: 700 51 | # 52 | # For details regarding fonts in packages, see 53 | # https://flutter.dev/custom-fonts/#from-packages 54 | -------------------------------------------------------------------------------- /test/flutter_tableview_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_test/flutter_test.dart'; 2 | 3 | import 'package:flutter_tableview/flutter_tableview.dart'; 4 | 5 | void main() { 6 | 7 | } 8 | --------------------------------------------------------------------------------