diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..d38858b --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,44 @@ +pipeline { + agent any + + options { + buildDiscarder( + logRotator( + numToKeepStr: '5' + ) + ) + } + + stages { + stage ("Build on Linux") { + agent { + label "flutter" + } + + steps { + script { + sh ''' + #!/bin/bash + + unset WORKSPACE + unset WORKSPACE_TMP + + rm -rf doc + flutter pub get + dart doc + + tar -cvf docs.tgz doc/api/* + flutter pub publish -f --skip-validation || true + ''' + } + } + + post { + always { + archiveArtifacts artifacts: "*.tgz", fingerprint: true + cleanWs() + } + } + } + } +} \ No newline at end of file diff --git a/README.md b/README.md index 7f98a4d..113d38e 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,26 @@ # flutter_treeview -A hierarchical data widget for your flutter apps. +**NOTE**: This is a fork of the original project in order to maintain functionality across updates for this abandoned package. + +A hierarchical data widget for your flutter apps. It offers a number of options for customizing the appearance and handling user interaction. It also offers some convenience methods for importing data into the tree. - ## Features -* Separately customize child and parent labels -* Add any icon to a node -* Choose from four different expander icons and several modifiers for adjusting shape, outline, and fill. -* Import data from a Map -* Includes ability to handle expandChange, tap, and double tap user interactions -* Includes convenience methods for adding, updating and deleting nodes - +- Separately customize child and parent labels +- Add any icon to a node +- Choose from four different expander icons and several modifiers for adjusting shape, outline, and fill. +- Import data from a Map +- Includes ability to handle expandChange, tap, and double tap user interactions +- Includes convenience methods for adding, updating and deleting nodes ## Sample Code + ### Creating a TreeView + ```dart List nodes = [ Node( @@ -79,10 +81,12 @@ TreeView( theme: treeViewTheme ), ``` -_The TreeView requires that the onExpansionChange property updates the expanded + +\_The TreeView requires that the onExpansionChange property updates the expanded node so that the tree is rendered properly. ### Creating a theme + ```dart TreeViewTheme _treeViewTheme = TreeViewTheme( expanderTheme: ExpanderThemeData( @@ -111,7 +115,9 @@ TreeViewTheme _treeViewTheme = TreeViewTheme( ``` ### Using custom data + The Node class supports the use of custom data. You can use the data property on the Node instance to store data that you want to easily retrieve. + ```dart class Person { final String name; @@ -140,7 +146,7 @@ List nodes = [ label: 'Otis', key: 'otis', data: otis, - ), + ), // is optional but recommended. If not specified, code can return Node instead of Node Node( label: 'Zorro', @@ -160,13 +166,12 @@ TreeView( ), ``` - ## Getting Started -For help getting started with this widget, view our +For help getting started with this widget, view our [online documentation](https://bitbucket.org/kevinandre/flutter_treeview/wiki/Home) or view the full [API reference](https://pub.dev/documentation/flutter_treeview/latest/). -For help getting started with Flutter, view our -[online documentation](https://flutter.dev/docs), which offers tutorials, +For help getting started with Flutter, view our +[online documentation](https://flutter.dev/docs), which offers tutorials, samples, guidance on mobile development, and a full API reference. diff --git a/pubspec.yaml b/pubspec.yaml index a8e8487..3d9354b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,15 +1,12 @@ name: flutter_treeview description: A tree widget for Flutter that can be used to display nested, hierarchical data. It includes a number of features like styling labels, icons, and import and export utilities. -version: 1.1.1 -homepage: https://bitbucket.org/kevinandre/flutter_treeview/src/master/ -repository: https://bitbucket.org/kevinandre/flutter_treeview/src/master/ -issue_tracker: https://bitbucket.org/kevinandre/flutter_treeview/issues -documentation: https://bitbucket.org/kevinandre/flutter_treeview/wiki/Home -api: https://pub.dev/documentation/flutter_treeview/latest/ +version: 1.1.2 +repository: https://git.zontreck.com/AriasCreations/flutter_treeview +issue_tracker: https://git.zontreck.com/AriasCreations/flutter_treeview/issues #author: kevinandre.com environment: - sdk: ">=2.15.0 <3.0.0" + sdk: ^3.4.0 dependencies: flutter: @@ -21,3 +18,5 @@ dev_dependencies: flutter: uses-material-design: true + +publish_to: https://git.zontreck.com/api/packages/AriasCreations/pub