Migrate package to git.zontreck.com
This commit is contained in:
parent
6985aa366b
commit
a8b322b54f
3 changed files with 70 additions and 22 deletions
44
Jenkinsfile
vendored
Normal file
44
Jenkinsfile
vendored
Normal file
|
@ -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()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
35
README.md
35
README.md
|
@ -1,24 +1,26 @@
|
||||||
# flutter_treeview
|
# 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 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.
|
It also offers some convenience methods for importing data into the tree.
|
||||||
|
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
* Separately customize child and parent labels
|
- Separately customize child and parent labels
|
||||||
* Add any icon to a node
|
- Add any icon to a node
|
||||||
* Choose from four different expander icons and several modifiers for adjusting shape, outline, and fill.
|
- Choose from four different expander icons and several modifiers for adjusting shape, outline, and fill.
|
||||||
* Import data from a Map
|
- Import data from a Map
|
||||||
* Includes ability to handle expandChange, tap, and double tap user interactions
|
- Includes ability to handle expandChange, tap, and double tap user interactions
|
||||||
* Includes convenience methods for adding, updating and deleting nodes
|
- Includes convenience methods for adding, updating and deleting nodes
|
||||||
|
|
||||||
|
|
||||||
## Sample Code
|
## Sample Code
|
||||||
|
|
||||||
### Creating a TreeView
|
### Creating a TreeView
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
List<Node> nodes = [
|
List<Node> nodes = [
|
||||||
Node(
|
Node(
|
||||||
|
@ -79,10 +81,12 @@ TreeView(
|
||||||
theme: treeViewTheme
|
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.
|
node so that the tree is rendered properly.
|
||||||
|
|
||||||
### Creating a theme
|
### Creating a theme
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
TreeViewTheme _treeViewTheme = TreeViewTheme(
|
TreeViewTheme _treeViewTheme = TreeViewTheme(
|
||||||
expanderTheme: ExpanderThemeData(
|
expanderTheme: ExpanderThemeData(
|
||||||
|
@ -111,7 +115,9 @@ TreeViewTheme _treeViewTheme = TreeViewTheme(
|
||||||
```
|
```
|
||||||
|
|
||||||
### Using custom data
|
### 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.
|
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
|
```dart
|
||||||
class Person {
|
class Person {
|
||||||
final String name;
|
final String name;
|
||||||
|
@ -140,7 +146,7 @@ List<Node> nodes = [
|
||||||
label: 'Otis',
|
label: 'Otis',
|
||||||
key: 'otis',
|
key: 'otis',
|
||||||
data: otis,
|
data: otis,
|
||||||
),
|
),
|
||||||
//<T> is optional but recommended. If not specified, code can return Node<dynamic> instead of Node<Animal>
|
//<T> is optional but recommended. If not specified, code can return Node<dynamic> instead of Node<Animal>
|
||||||
Node(
|
Node(
|
||||||
label: 'Zorro',
|
label: 'Zorro',
|
||||||
|
@ -160,13 +166,12 @@ TreeView(
|
||||||
),
|
),
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Getting Started
|
## 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
|
[online documentation](https://bitbucket.org/kevinandre/flutter_treeview/wiki/Home) or view the
|
||||||
full [API reference](https://pub.dev/documentation/flutter_treeview/latest/).
|
full [API reference](https://pub.dev/documentation/flutter_treeview/latest/).
|
||||||
|
|
||||||
For help getting started with Flutter, view our
|
For help getting started with Flutter, view our
|
||||||
[online documentation](https://flutter.dev/docs), which offers tutorials,
|
[online documentation](https://flutter.dev/docs), which offers tutorials,
|
||||||
samples, guidance on mobile development, and a full API reference.
|
samples, guidance on mobile development, and a full API reference.
|
||||||
|
|
13
pubspec.yaml
13
pubspec.yaml
|
@ -1,15 +1,12 @@
|
||||||
name: flutter_treeview
|
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.
|
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
|
version: 1.1.2
|
||||||
homepage: https://bitbucket.org/kevinandre/flutter_treeview/src/master/
|
repository: https://git.zontreck.com/AriasCreations/flutter_treeview
|
||||||
repository: https://bitbucket.org/kevinandre/flutter_treeview/src/master/
|
issue_tracker: https://git.zontreck.com/AriasCreations/flutter_treeview/issues
|
||||||
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/
|
|
||||||
#author: kevinandre.com <kevin@codeninelabs.com>
|
#author: kevinandre.com <kevin@codeninelabs.com>
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.15.0 <3.0.0"
|
sdk: ^3.4.0
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
|
@ -21,3 +18,5 @@ dev_dependencies:
|
||||||
|
|
||||||
flutter:
|
flutter:
|
||||||
uses-material-design: true
|
uses-material-design: true
|
||||||
|
|
||||||
|
publish_to: https://git.zontreck.com/api/packages/AriasCreations/pub
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue