chore: bump dart sdk to 3.8 (#20355)
* chore: bump dart sdk to 3.8 * chore: make build * make pigeon * chore: format files --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
@@ -12,24 +12,15 @@ class MemoryEpilogue extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _MemoryEpilogueState extends State<MemoryEpilogue> with TickerProviderStateMixin {
|
||||
late final _animationController = AnimationController(
|
||||
vsync: this,
|
||||
duration: const Duration(
|
||||
seconds: 2,
|
||||
),
|
||||
)..repeat(
|
||||
reverse: true,
|
||||
);
|
||||
late final _animationController = AnimationController(vsync: this, duration: const Duration(seconds: 2))
|
||||
..repeat(reverse: true);
|
||||
|
||||
late final Animation _animation;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_animation = CurvedAnimation(
|
||||
parent: _animationController,
|
||||
curve: Curves.easeIn,
|
||||
);
|
||||
_animation = CurvedAnimation(parent: _animationController, curve: Curves.easeIn);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -55,16 +46,12 @@ class _MemoryEpilogueState extends State<MemoryEpilogue> with TickerProviderStat
|
||||
const SizedBox(height: 16.0),
|
||||
Text(
|
||||
"memories_all_caught_up",
|
||||
style: context.textTheme.headlineMedium?.copyWith(
|
||||
color: Colors.white,
|
||||
),
|
||||
style: context.textTheme.headlineMedium?.copyWith(color: Colors.white),
|
||||
).tr(),
|
||||
const SizedBox(height: 16.0),
|
||||
Text(
|
||||
"memories_check_back_tomorrow",
|
||||
style: context.textTheme.bodyMedium?.copyWith(
|
||||
color: Colors.white,
|
||||
),
|
||||
style: context.textTheme.bodyMedium?.copyWith(color: Colors.white),
|
||||
).tr(),
|
||||
const SizedBox(height: 16.0),
|
||||
TextButton(
|
||||
@@ -92,23 +79,14 @@ class _MemoryEpilogueState extends State<MemoryEpilogue> with TickerProviderStat
|
||||
child: AnimatedBuilder(
|
||||
animation: _animation,
|
||||
builder: (context, child) {
|
||||
return Transform.translate(
|
||||
offset: Offset(0, 8 * _animationController.value),
|
||||
child: child,
|
||||
);
|
||||
return Transform.translate(offset: Offset(0, 8 * _animationController.value), child: child);
|
||||
},
|
||||
child: const Icon(
|
||||
size: 32,
|
||||
Icons.expand_less_sharp,
|
||||
color: Colors.white,
|
||||
),
|
||||
child: const Icon(size: 32, Icons.expand_less_sharp, color: Colors.white),
|
||||
),
|
||||
),
|
||||
Text(
|
||||
"memories_swipe_to_close",
|
||||
style: context.textTheme.bodyMedium?.copyWith(
|
||||
color: Colors.white,
|
||||
),
|
||||
style: context.textTheme.bodyMedium?.copyWith(color: Colors.white),
|
||||
).tr(),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user