File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ class SplashScreenState extends ConsumerState<SplashScreen> {
2121 @override
2222 void initState () {
2323 redirect (context, ref);
24- // 1フレーム後に 0→1 へ更新して文字を順次表示
2524 WidgetsBinding .instance.addPostFrameCallback ((_) {
2625 if (! mounted) {
2726 return ;
@@ -69,7 +68,6 @@ class SplashScreenState extends ConsumerState<SplashScreen> {
6968 child: Stack (
7069 alignment: Alignment .center,
7170 children: < Widget > [
72- // アイコンは左に固定
7371 Align (
7472 alignment: Alignment .centerLeft,
7573 child: Padding (
@@ -78,9 +76,7 @@ class SplashScreenState extends ConsumerState<SplashScreen> {
7876 Assets .image.appIcon.image (width: 90 , height: 90 ),
7977 ),
8078 ),
81- // テキストのみアニメーションし、アイコンの右隣に並べる
8279 SingleMotionBuilder (
83- // 少しゆっくり文字を出す(約1.8秒)
8480 motion: const Motion .curved (
8581 Duration (milliseconds: 1800 ),
8682 Curves .easeOutCubic,
@@ -95,8 +91,7 @@ class SplashScreenState extends ConsumerState<SplashScreen> {
9591 final letterSpacing = - 10.0 + 10.0 * t;
9692 const fullText = 'FoodGram' ;
9793 const len = fullText.length;
98- final count =
99- (len * t).ceil ().clamp (1 , len); // F → 徐々に増える
94+ final count = (len * t).ceil ().clamp (1 , len);
10095 final display = fullText.substring (0 , count);
10196 final style = TextStyle (
10297 fontSize: 46 ,
You can’t perform that action at this time.
0 commit comments