Skip to content

Commit 8a84484

Browse files
author
lilei
committed
project structure
1 parent fd93026 commit 8a84484

File tree

69 files changed

+242
-54
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+242
-54
lines changed

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
.DS_Store
2+
.dart_tool/
3+
4+
.packages
5+
.pub/
6+
7+
build/
8+
ios/.generated/
9+
ios/Flutter/Generated.xcconfig
10+
ios/Runner/GeneratedPluginRegistrant.*
11+
112
# Miscellaneous
213
*.class
314
*.log
@@ -71,3 +82,4 @@
7182
!**/ios/**/default.pbxuser
7283
!**/ios/**/default.perspectivev3
7384
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
85+

.metadata

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ version:
77
revision: 8661d8aecd626f7f57ccbcb735553edc05a2e713
88
channel: stable
99

10-
project_type: app
10+
project_type: package

CHANGELOG.md

+3

LICENSE

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TODO: Add your license here.

README.md

+6-8

lib/easy_callback.dart

-5
This file was deleted.

lib/effect/effect_text.dart

-1
This file was deleted.

lib/effect/rainbow_text.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import 'package:flutter/material.dart';
22
import 'package:flutter/widgets.dart';
3-
import 'package:flutter_effect_text/easy_callback.dart';
43

4+
5+
typedef EasyCallback<P, R> = R Function(P param);
56
class RainbowText extends StatefulWidget {
67
final List<Color> colors;
78
final String text;

lib/flutter_text_effect.dart

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
library text_effect;
2+
3+
export 'effect/diff_scale_text.dart';
4+
export 'effect/line_border_text.dart';
5+
export 'effect/rainbow_text.dart';

pubspec.yaml

+13-32
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,8 @@
1-
name: flutter_effect_text
2-
description: A new Flutter project.
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
1+
name: text_effect
2+
description: A new Flutter package.
3+
version: 0.0.1
4+
author:
5+
homepage:
156

167
environment:
178
sdk: ">=2.1.0 <3.0.0"
@@ -20,38 +11,28 @@ dependencies:
2011
flutter:
2112
sdk: flutter
2213

23-
# The following adds the Cupertino Icons font to your application.
24-
# Use with the CupertinoIcons class for iOS style icons.
25-
cupertino_icons: ^0.1.2
26-
2714
dev_dependencies:
2815
flutter_test:
2916
sdk: flutter
3017

31-
3218
# For information on the generic Dart part of this file, see the
3319
# following page: https://www.dartlang.org/tools/pub/pubspec
3420

3521
# The following section is specific to Flutter.
3622
flutter:
3723

38-
# The following line ensures that the Material Icons font is
39-
# included with your application, so that you can use the icons in
40-
# the material Icons class.
41-
uses-material-design: true
42-
43-
# To add assets to your application, add an assets section, like this:
24+
# To add assets to your package, add an assets section, like this:
4425
# assets:
4526
# - images/a_dot_burr.jpeg
4627
# - images/a_dot_ham.jpeg
47-
28+
#
29+
# For details regarding assets in packages, see
30+
# https://flutter.io/assets-and-images/#from-packages
31+
#
4832
# An image asset can refer to one or more resolution-specific "variants", see
4933
# https://flutter.io/assets-and-images/#resolution-aware.
5034

51-
# For details regarding adding assets from package dependencies, see
52-
# https://flutter.io/assets-and-images/#from-packages
53-
54-
# To add custom fonts to your application, add a fonts section here,
35+
# To add custom fonts to your package, add a fonts section here,
5536
# in this "flutter" section. Each entry in this list should have a
5637
# "family" key with the font family name, and a "fonts" key with a
5738
# list giving the asset and other descriptors for the font. For
@@ -68,5 +49,5 @@ flutter:
6849
# - asset: fonts/TrajanPro_Bold.ttf
6950
# weight: 700
7051
#
71-
# For details regarding fonts from package dependencies,
72-
# see https://flutter.io/custom-fonts/#from-packages
52+
# For details regarding fonts in packages, see
53+
# https://flutter.io/custom-fonts/#from-packages

sample/.gitignore

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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+
.settings
21+
.classpath
22+
.project
23+
24+
# Flutter/Dart/Pub related
25+
**/doc/api/
26+
.dart_tool/
27+
.flutter-plugins
28+
.packages
29+
.pub-cache/
30+
.pub/
31+
/build/
32+
33+
# Android related
34+
**/android/**/gradle-wrapper.jar
35+
**/android/.gradle
36+
**/android/captures/
37+
**/android/gradlew
38+
**/android/gradlew.bat
39+
**/android/local.properties
40+
**/android/**/GeneratedPluginRegistrant.java
41+
42+
# iOS/XCode related
43+
**/ios/**/*.mode1v3
44+
**/ios/**/*.mode2v3
45+
**/ios/**/*.moved-aside
46+
**/ios/**/*.pbxuser
47+
**/ios/**/*.perspectivev3
48+
**/ios/**/*sync/
49+
**/ios/**/.sconsign.dblite
50+
**/ios/**/.tags*
51+
**/ios/**/.vagrant/
52+
**/ios/**/DerivedData/
53+
**/ios/**/Icon?
54+
**/ios/**/Pods/
55+
**/ios/**/.symlinks/
56+
**/ios/**/profile
57+
**/ios/**/xcuserdata
58+
**/ios/.generated/
59+
**/ios/Flutter/App.framework
60+
**/ios/Flutter/Flutter.framework
61+
**/ios/Flutter/Generated.xcconfig
62+
**/ios/Flutter/app.flx
63+
**/ios/Flutter/app.zip
64+
**/ios/Flutter/flutter_assets/
65+
**/ios/ServiceDefinitions.json
66+
**/ios/Runner/GeneratedPluginRegistrant.*
67+
68+
# Exceptions to above rules.
69+
!**/ios/**/default.mode1v3
70+
!**/ios/**/default.mode2v3
71+
!**/ios/**/default.pbxuser
72+
!**/ios/**/default.perspectivev3
73+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

sample/.metadata

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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: 8661d8aecd626f7f57ccbcb735553edc05a2e713
8+
channel: stable
9+
10+
project_type: app

sample/README.md

+16
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

ios/Runner.xcodeproj/project.pbxproj renamed to sample/ios/Runner.xcodeproj/project.pbxproj

+4-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
9740EEB11CF90186004384FC /* Flutter */,
8888
97C146F01CF9000F007C117D /* Runner */,
8989
97C146EF1CF9000F007C117D /* Products */,
90-
CF3B75C9A7D2FA2A4C99F110 /* Frameworks */,
9190
);
9291
sourceTree = "<group>";
9392
};
@@ -157,6 +156,7 @@
157156
TargetAttributes = {
158157
97C146ED1CF9000F007C117D = {
159158
CreatedOnToolsVersion = 7.3.1;
159+
DevelopmentTeam = SLM5Y4FHYV;
160160
};
161161
};
162162
};
@@ -311,7 +311,7 @@
311311
buildSettings = {
312312
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
313313
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
314-
DEVELOPMENT_TEAM = S8QB4VV633;
314+
DEVELOPMENT_TEAM = SLM5Y4FHYV;
315315
ENABLE_BITCODE = NO;
316316
FRAMEWORK_SEARCH_PATHS = (
317317
"$(inherited)",
@@ -437,6 +437,7 @@
437437
buildSettings = {
438438
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
439439
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
440+
DEVELOPMENT_TEAM = SLM5Y4FHYV;
440441
ENABLE_BITCODE = NO;
441442
FRAMEWORK_SEARCH_PATHS = (
442443
"$(inherited)",
@@ -460,6 +461,7 @@
460461
buildSettings = {
461462
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
462463
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
464+
DEVELOPMENT_TEAM = SLM5Y4FHYV;
463465
ENABLE_BITCODE = NO;
464466
FRAMEWORK_SEARCH_PATHS = (
465467
"$(inherited)",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>BuildSystemType</key>
6+
<string>Original</string>
7+
</dict>
8+
</plist>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

lib/main.dart renamed to sample/lib/main.dart

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import 'package:flutter/material.dart';
2-
import 'package:flutter_effect_text/effect/diff_scale_text.dart';
3-
import 'package:flutter_effect_text/effect/line_border_text.dart';
4-
import 'package:flutter_effect_text/effect/rainbow_text.dart';
2+
import 'package:text_effect/flutter_text_effect.dart';
53

64
void main() => runApp(MyApp());
75

sample/pubspec.yaml

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: sample
2+
description: A new Flutter project.
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+
# The following adds the Cupertino Icons font to your application.
24+
# Use with the CupertinoIcons class for iOS style icons.
25+
cupertino_icons: ^0.1.2
26+
27+
dev_dependencies:
28+
flutter_test:
29+
sdk: flutter
30+
text_effect:
31+
path: ../
32+
33+
34+
# For information on the generic Dart part of this file, see the
35+
# following page: https://www.dartlang.org/tools/pub/pubspec
36+
37+
# The following section is specific to Flutter.
38+
flutter:
39+
40+
# The following line ensures that the Material Icons font is
41+
# included with your application, so that you can use the icons in
42+
# the material Icons class.
43+
uses-material-design: true
44+
45+
# To add assets to your application, add an assets section, like this:
46+
# assets:
47+
# - images/a_dot_burr.jpeg
48+
# - images/a_dot_ham.jpeg
49+
50+
# An image asset can refer to one or more resolution-specific "variants", see
51+
# https://flutter.io/assets-and-images/#resolution-aware.
52+
53+
# For details regarding adding assets from package dependencies, see
54+
# https://flutter.io/assets-and-images/#from-packages
55+
56+
# To add custom fonts to your application, add a fonts section here,
57+
# in this "flutter" section. Each entry in this list should have a
58+
# "family" key with the font family name, and a "fonts" key with a
59+
# list giving the asset and other descriptors for the font. For
60+
# example:
61+
# fonts:
62+
# - family: Schyler
63+
# fonts:
64+
# - asset: fonts/Schyler-Regular.ttf
65+
# - asset: fonts/Schyler-Italic.ttf
66+
# style: italic
67+
# - family: Trajan Pro
68+
# fonts:
69+
# - asset: fonts/TrajanPro.ttf
70+
# - asset: fonts/TrajanPro_Bold.ttf
71+
# weight: 700
72+
#
73+
# For details regarding fonts from package dependencies,
74+
# see https://flutter.io/custom-fonts/#from-packages

0 commit comments

Comments
 (0)