Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
auto_track_plugin
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Dubhe
2024-05-03 17:23:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
af74392f6a25ba4d10a47402f444216c4843a6c8
af74392f
1 parent
932649b9
perf: add LICENSE
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
7 deletions
LICENSE
example/lib/main.dart
example/lib/page_a.dart
pubspec.yaml
LICENSE
View file @
af74392
TODO: Add your license here.
BSD 3-Clause License
Copyright (c) 2024, Dubhe
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
...
...
example/lib/main.dart
View file @
af74392
import
'package:auto_track/auto_track.dart'
;
import
'package:auto_track/auto_track/config/config.dart'
;
import
'package:auto_track/auto_track/index.dart'
;
import
'package:auto_track_example/home.dart'
;
import
'package:auto_track_example/page_a.dart'
;
import
'package:flutter/material.dart'
;
...
...
@@ -26,12 +24,13 @@ class _MyAppState extends State<MyApp> {
AutoTrackPageConfig
<
PageA
>(
pageID:
'page_a'
,
),
]))
.
enable
()
.
enablePageLeave
()
.
enablePageView
()
.
enableClick
()
.
enableDrag
()
.
enableIgnoreNullKey
()
.
enableLog
();
super
.
initState
();
...
...
example/lib/page_a.dart
View file @
af74392
...
...
@@ -5,11 +5,25 @@ class PageA extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
GestureDetector
(
return
Container
(
margin:
const
EdgeInsets
.
only
(
top:
200
),
child:
Column
(
children:
[
GestureDetector
(
onTap:
()
{
print
(
"tap page a null key"
);
},
child:
const
Text
(
'null key'
),
),
GestureDetector
(
key:
const
Key
(
'page-a-click'
),
onTap:
()
{
print
(
"tap page a"
);
},
child:
const
Text
(
'page a'
),
child:
const
Text
(
'have key'
),
)
],
),
);
}
}
...
...
pubspec.yaml
View file @
af74392
name
:
auto_track
description
:
"
Auto
Track
Plugin"
version
:
0.0.1
homepage
:
homepage
:
https://github.com/epoll-j/auto_track_plugin
environment
:
sdk
:
'
>=3.2.3
<4.0.0'
...
...
Please
register
or
login
to post a comment