Skip to content

Commit a4412a6

Browse files
committed
[auto_animated] Bump 1.3.0
1 parent d4719bf commit a4412a6

File tree

11 files changed

+150
-101
lines changed

11 files changed

+150
-101
lines changed

packages/auto_animated/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.3.0
2+
3+
* Fixed lexical error in `AutoAnimatedIconButton` (`firstToolip` & `secondToolip` renamed to `firstTooltip` & secondTooltip)
4+
15
## 1.3.0-dev.5
26

37
* Fixed error when timer not initialized

packages/auto_animated/README.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,28 @@ Widget _buildAnimatedItem(
6464
end: Offset.zero,
6565
).animate(animation),
6666
// Paste you Widget
67-
child: YouWidgetHere(),
67+
child: YouWidgetHere(title: index.toString()),
6868
),
6969
)
7070
```
7171

72+
## `AutoAnimatedSliverGrid` usage example
73+
74+
```dart
75+
AutoAnimatedSliverGrid(
76+
delay: Duration(milliseconds: 500) * 4,
77+
showItemInterval: Duration(milliseconds: 500),
78+
showItemDuration: Duration(seconds: 1),
79+
itemCount: 6,
80+
itemBuilder: animationItemBuilder(
81+
(index) => YouWidgetHere(title: index.toString()),
82+
),
83+
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
84+
crossAxisCount: 3,
85+
),
86+
)
87+
```
88+
7289
## `AutoAnimatedIconButton` usage example
7390
### Basic
7491
```dart
@@ -77,11 +94,11 @@ AutoAnimatedIconButton(
7794
onPressed: () {},
7895
)
7996
```
80-
### With separate toolips
97+
### With separate tooltips
8198
```dart
8299
AutoAnimatedIconButton(
83100
icon: AnimatedIcons.arrow_menu,
84-
firstToolip: 'Event',
85-
secondToolip: 'Add',
101+
firstTooltip: 'Event',
102+
secondTooltip: 'Add',
86103
)
87104
```

packages/auto_animated/example/lib/screens/grid.dart

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ class _AutoAnimatedGridExampleState extends State<AutoAnimatedGridExample> {
1313
@override
1414
void initState() {
1515
Future.delayed(Duration(milliseconds: 500) * 5, () {
16+
if (!mounted) {
17+
return;
18+
}
1619
setState(() {
1720
itemsCount += 10;
1821
});
@@ -21,20 +24,18 @@ class _AutoAnimatedGridExampleState extends State<AutoAnimatedGridExample> {
2124
}
2225

2326
@override
24-
Widget build(BuildContext context) {
25-
return Scaffold(
26-
body: SafeArea(
27-
child: AutoAnimatedGrid(
28-
showItemInterval: Duration(milliseconds: 500),
29-
showItemDuration: Duration(seconds: 1),
30-
itemCount: itemsCount,
31-
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
32-
crossAxisCount: 3,
27+
Widget build(BuildContext context) => Scaffold(
28+
body: SafeArea(
29+
child: AutoAnimatedGrid(
30+
showItemInterval: Duration(milliseconds: 500),
31+
showItemDuration: Duration(seconds: 1),
32+
itemCount: itemsCount,
33+
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
34+
crossAxisCount: 3,
35+
),
36+
itemBuilder: animationItemBuilder(
37+
(index) => HorizontalItem(title: index.toString())),
3338
),
34-
itemBuilder: animationItemBuilder(
35-
(index) => HorizontalItem(title: index.toString())),
3639
),
37-
),
38-
);
39-
}
40+
);
4041
}

packages/auto_animated/example/lib/screens/icon_button.dart

Lines changed: 37 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -12,46 +12,44 @@ class _AutoAnimatedIconButtonExampleState
1212
bool _externalState = false;
1313

1414
@override
15-
Widget build(BuildContext context) {
16-
return Scaffold(
17-
body: Center(
18-
child: Column(
19-
mainAxisAlignment: MainAxisAlignment.center,
20-
children: <Widget>[
21-
Padding(
22-
padding: EdgeInsets.all(16),
23-
child: AppBar(
24-
primary: false,
25-
title: Text('Auto animated Icon'),
26-
// Implement animated icon
27-
leading: AutoAnimatedIconButton(
28-
icon: AnimatedIcons.menu_close,
29-
firstToolip: 'Menu',
30-
secondToolip: 'Close',
31-
onPressed: () {},
15+
Widget build(BuildContext context) => Scaffold(
16+
body: Center(
17+
child: Column(
18+
mainAxisAlignment: MainAxisAlignment.center,
19+
children: <Widget>[
20+
Padding(
21+
padding: EdgeInsets.all(16),
22+
child: AppBar(
23+
primary: false,
24+
title: Text('Auto animated Icon'),
25+
// Implement animated icon
26+
leading: AutoAnimatedIconButton(
27+
icon: AnimatedIcons.menu_close,
28+
firstTooltip: 'Menu',
29+
secondTooltip: 'Close',
30+
onPressed: () {},
31+
),
3232
),
3333
),
34-
),
35-
AutoAnimatedIconButton.externalState(
36-
icon: AnimatedIcons.arrow_menu,
37-
onPressed: () {
38-
setState(() {
39-
_externalState = !_externalState;
40-
});
41-
},
42-
iconState: !_externalState ? IconState.first : IconState.second,
43-
),
44-
AutoAnimatedIconButton(
45-
icon: AnimatedIcons.play_pause,
46-
onPressed: () {},
47-
),
48-
AutoAnimatedIconButton(
49-
icon: AnimatedIcons.search_ellipsis,
50-
onPressed: () {},
51-
),
52-
],
34+
AutoAnimatedIconButton.externalState(
35+
icon: AnimatedIcons.arrow_menu,
36+
onPressed: () {
37+
setState(() {
38+
_externalState = !_externalState;
39+
});
40+
},
41+
iconState: !_externalState ? IconState.first : IconState.second,
42+
),
43+
AutoAnimatedIconButton(
44+
icon: AnimatedIcons.play_pause,
45+
onPressed: () {},
46+
),
47+
AutoAnimatedIconButton(
48+
icon: AnimatedIcons.search_ellipsis,
49+
onPressed: () {},
50+
),
51+
],
52+
),
5353
),
54-
),
55-
);
56-
}
54+
);
5755
}

packages/auto_animated/example/lib/screens/sliver.dart

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@ class SliverExample extends StatelessWidget {
2222
SliverPadding(
2323
padding: EdgeInsets.all(16),
2424
sliver: AutoAnimatedSliverGrid(
25-
delay: Duration(milliseconds: 500) * 4,
26-
showItemInterval: Duration(milliseconds: 500),
27-
showItemDuration: Duration(seconds: 1),
28-
itemCount: 6,
29-
itemBuilder: animationItemBuilder(
30-
(index) => HorizontalItem(title: index.toString())),
31-
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
32-
crossAxisCount: 3,
33-
)),
25+
delay: Duration(milliseconds: 500) * 4,
26+
showItemInterval: Duration(milliseconds: 500),
27+
showItemDuration: Duration(seconds: 1),
28+
itemCount: 6,
29+
itemBuilder: animationItemBuilder(
30+
(index) => HorizontalItem(title: index.toString()),
31+
),
32+
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
33+
crossAxisCount: 3,
34+
),
35+
),
3436
)
3537
],
3638
),

packages/auto_animated/example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ packages:
1414
path: ".."
1515
relative: true
1616
source: path
17-
version: "1.3.0-dev.5"
17+
version: "1.3.0"
1818
boolean_selector:
1919
dependency: transitive
2020
description:

packages/auto_animated/lib/src/icon_button.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:flutter/material.dart';
55
66
enum IconState { first, second }
77

8-
///Creates an AnimatedIcon which is automaically animated.
8+
///Creates an AnimatedIcon which is automatically animated.
99
///
1010
///The [icon] and [onPressed] are required.
1111
///[icon] cannot be null.
@@ -32,8 +32,8 @@ class AutoAnimatedIconButton extends StatefulWidget {
3232
this.focusNode,
3333
this.semanticLabel,
3434
this.textDirection,
35-
this.firstToolip,
36-
this.secondToolip,
35+
this.firstTooltip,
36+
this.secondTooltip,
3737
}) : iconState = null,
3838
super(key: key);
3939

@@ -55,15 +55,15 @@ class AutoAnimatedIconButton extends StatefulWidget {
5555
this.focusNode,
5656
this.semanticLabel,
5757
this.textDirection,
58-
this.firstToolip,
59-
this.secondToolip,
58+
this.firstTooltip,
59+
this.secondTooltip,
6060
}) : super(key: key);
6161

6262
final AnimatedIconData icon;
6363
final Function onPressed;
6464
final Duration duration;
6565
final Color splashColor, hoverColor;
66-
final String firstToolip, secondToolip, semanticLabel;
66+
final String firstTooltip, secondTooltip, semanticLabel;
6767
final double size;
6868
final EdgeInsetsGeometry padding;
6969
final AlignmentGeometry alignment;
@@ -134,7 +134,7 @@ class _AutoAnimatedIconButtonState extends State<AutoAnimatedIconButton>
134134
onPressed: _onPressed,
135135
splashColor: widget.splashColor,
136136
hoverColor: widget.hoverColor,
137-
tooltip: !_isPressed ? widget.firstToolip : widget.secondToolip,
137+
tooltip: !_isPressed ? widget.firstTooltip : widget.secondTooltip,
138138
iconSize: widget.size,
139139
padding: widget.padding,
140140
alignment: widget.alignment,

packages/auto_animated/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: auto_animated
22
description: Widgets starting auto play animation when mounted. It is already possible to animate the list and icons.
3-
version: 1.3.0-dev.5
3+
version: 1.3.0
44
author: Serge Shkurko <sergeshkurko@outlook.com>
55
homepage: https://github.com/rbcprolabs/packages.flutter/tree/master/packages/auto_animated
66

packages/native_pdf_view/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
/* Begin PBXBuildFile section */
1010
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11-
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; };
1211
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
1312
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
1413
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
@@ -39,7 +38,6 @@
3938
/* Begin PBXFileReference section */
4039
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
4140
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
42-
2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; };
4341
3AAAD1612F3F80D493B394F2 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4442
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
4543
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
@@ -54,6 +52,9 @@
5452
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
5553
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
5654
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
55+
CAF299D3D15708246AEABBE0 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
56+
D6E55656A65A91BB53719F03 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
57+
F746E5650ECC70938C853B2C /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
5758
/* End PBXFileReference section */
5859

5960
/* Begin PBXFrameworksBuildPhase section */
@@ -73,6 +74,9 @@
7374
09037512C9FEFC32EC0E6879 /* Pods */ = {
7475
isa = PBXGroup;
7576
children = (
77+
CAF299D3D15708246AEABBE0 /* Pods-Runner.debug.xcconfig */,
78+
D6E55656A65A91BB53719F03 /* Pods-Runner.release.xcconfig */,
79+
F746E5650ECC70938C853B2C /* Pods-Runner.profile.xcconfig */,
7680
);
7781
name = Pods;
7882
sourceTree = "<group>";
@@ -88,7 +92,6 @@
8892
9740EEB11CF90186004384FC /* Flutter */ = {
8993
isa = PBXGroup;
9094
children = (
91-
2D5378251FAA1A9400D5DBA9 /* flutter_assets */,
9295
3B80C3931E831B6300D905FE /* App.framework */,
9396
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
9497
9740EEBA1CF902C7004384FC /* Flutter.framework */,
@@ -207,7 +210,6 @@
207210
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
208211
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
209212
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
210-
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */,
211213
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
212214
);
213215
runOnlyForDeploymentPostprocessing = 0;
@@ -270,25 +272,23 @@
270272
buildActionMask = 2147483647;
271273
files = (
272274
);
273-
inputFileListPaths = (
274-
);
275275
inputPaths = (
276-
"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
276+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
277277
"${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework",
278+
"${BUILT_PRODUCTS_DIR}/device_info/device_info.framework",
279+
"${BUILT_PRODUCTS_DIR}/native_pdf_renderer/native_pdf_renderer.framework",
278280
"${BUILT_PRODUCTS_DIR}/path_provider/path_provider.framework",
279-
"${BUILT_PRODUCTS_DIR}/native_pdf_view/native_pdf_view.framework",
280281
);
281282
name = "[CP] Embed Pods Frameworks";
282-
outputFileListPaths = (
283-
);
284283
outputPaths = (
285284
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
285+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/device_info.framework",
286+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/native_pdf_renderer.framework",
286287
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/path_provider.framework",
287-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/native_pdf_view.framework",
288288
);
289289
runOnlyForDeploymentPostprocessing = 0;
290290
shellPath = /bin/sh;
291-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
291+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
292292
showEnvVarsInLog = 0;
293293
};
294294
/* End PBXShellScriptBuildPhase section */

0 commit comments

Comments
 (0)