mirror of
https://github.com/flutter/samples.git
synced 2026-04-29 11:06:34 +00:00
Remove extra semantic node from shrine app bar (#248)
This commit is contained in:
@@ -142,38 +142,35 @@ class _BackdropTitle extends AnimatedWidget {
|
|||||||
),
|
),
|
||||||
// Here, we do a custom cross fade between backTitle and frontTitle.
|
// Here, we do a custom cross fade between backTitle and frontTitle.
|
||||||
// This makes a smooth animation between the two texts.
|
// This makes a smooth animation between the two texts.
|
||||||
Semantics(
|
Stack(
|
||||||
container: true,
|
children: [
|
||||||
child: Stack(
|
Opacity(
|
||||||
children: [
|
opacity: CurvedAnimation(
|
||||||
Opacity(
|
parent: ReverseAnimation(animation),
|
||||||
opacity: CurvedAnimation(
|
curve: const Interval(0.5, 1),
|
||||||
parent: ReverseAnimation(animation),
|
).value,
|
||||||
curve: const Interval(0.5, 1),
|
child: FractionalTranslation(
|
||||||
).value,
|
translation: Tween<Offset>(
|
||||||
child: FractionalTranslation(
|
begin: Offset.zero,
|
||||||
translation: Tween<Offset>(
|
end: Offset(0.5 * textDirectionScalar, 0),
|
||||||
begin: Offset.zero,
|
).evaluate(animation),
|
||||||
end: Offset(0.5 * textDirectionScalar, 0),
|
child: backTitle,
|
||||||
).evaluate(animation),
|
|
||||||
child: backTitle,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Opacity(
|
),
|
||||||
opacity: CurvedAnimation(
|
Opacity(
|
||||||
parent: animation,
|
opacity: CurvedAnimation(
|
||||||
curve: const Interval(0.5, 1),
|
parent: animation,
|
||||||
).value,
|
curve: const Interval(0.5, 1),
|
||||||
child: FractionalTranslation(
|
).value,
|
||||||
translation: Tween<Offset>(
|
child: FractionalTranslation(
|
||||||
begin: Offset(-0.25 * textDirectionScalar, 0),
|
translation: Tween<Offset>(
|
||||||
end: Offset.zero,
|
begin: Offset(-0.25 * textDirectionScalar, 0),
|
||||||
).evaluate(animation),
|
end: Offset.zero,
|
||||||
child: frontTitle,
|
).evaluate(animation),
|
||||||
),
|
child: frontTitle,
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
],
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
);
|
);
|
||||||
|
|||||||
38
gallery/gallery/macos/Podfile.lock
Normal file
38
gallery/gallery/macos/Podfile.lock
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
PODS:
|
||||||
|
- FlutterMacOS (1.0.0)
|
||||||
|
- shared_preferences (0.0.1)
|
||||||
|
- shared_preferences_macos (0.0.1):
|
||||||
|
- FlutterMacOS
|
||||||
|
- url_launcher (0.0.1)
|
||||||
|
- url_launcher_macos (0.0.1):
|
||||||
|
- FlutterMacOS
|
||||||
|
|
||||||
|
DEPENDENCIES:
|
||||||
|
- FlutterMacOS (from `Flutter/ephemeral/.symlinks/flutter/darwin-x64-release`)
|
||||||
|
- shared_preferences (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences/macos`)
|
||||||
|
- shared_preferences_macos (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos`)
|
||||||
|
- url_launcher (from `Flutter/ephemeral/.symlinks/plugins/url_launcher/macos`)
|
||||||
|
- url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`)
|
||||||
|
|
||||||
|
EXTERNAL SOURCES:
|
||||||
|
FlutterMacOS:
|
||||||
|
:path: Flutter/ephemeral/.symlinks/flutter/darwin-x64-release
|
||||||
|
shared_preferences:
|
||||||
|
:path: Flutter/ephemeral/.symlinks/plugins/shared_preferences/macos
|
||||||
|
shared_preferences_macos:
|
||||||
|
:path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos
|
||||||
|
url_launcher:
|
||||||
|
:path: Flutter/ephemeral/.symlinks/plugins/url_launcher/macos
|
||||||
|
url_launcher_macos:
|
||||||
|
:path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos
|
||||||
|
|
||||||
|
SPEC CHECKSUMS:
|
||||||
|
FlutterMacOS: 15bea8a44d2fa024068daa0140371c020b4b6ff9
|
||||||
|
shared_preferences: 9fec34d1bd906196a4da48fcf6c3ad521cc00b8d
|
||||||
|
shared_preferences_macos: 5e5c2839894accb56b7d23328905b757f2bafaf6
|
||||||
|
url_launcher: af78307ef9bafff91273b34f1c6c0c86a0004fd7
|
||||||
|
url_launcher_macos: 76867a28e24e0b6b98bfd65f157b64108e6d477a
|
||||||
|
|
||||||
|
PODFILE CHECKSUM: d8ba9b3e9e93c62c74a660b46c6fcb09f03991a7
|
||||||
|
|
||||||
|
COCOAPODS: 1.7.5
|
||||||
Reference in New Issue
Block a user