flutter: appName: Use animated_text_kit
This commit is contained in:
parent
79c6ebaf7b
commit
943ef77087
|
@ -1,3 +1,4 @@
|
|||
import 'package:animated_text_kit/animated_text_kit.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
// import 'package:flutter/services.dart';
|
||||
import 'package:sanmill/generated/l10n.dart';
|
||||
|
@ -122,13 +123,30 @@ class _HomeDrawerState extends State<HomeDrawer> {
|
|||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 8, left: 4),
|
||||
child: Text(
|
||||
S.of(context).appName,
|
||||
style: TextStyle(
|
||||
child: ColorizeAnimatedTextKit(
|
||||
onTap: () {
|
||||
print("ColorizeAnimatedTextKit Tap Event");
|
||||
},
|
||||
text: [
|
||||
S.of(context).appName,
|
||||
S.of(context).appName,
|
||||
S.of(context).appName,
|
||||
],
|
||||
textStyle: TextStyle(
|
||||
fontSize: 24.0,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: AppTheme.grey,
|
||||
fontSize: 24,
|
||||
),
|
||||
colors: [
|
||||
Colors.black,
|
||||
Colors.blue,
|
||||
Colors.yellow,
|
||||
Colors.red,
|
||||
],
|
||||
speed: const Duration(milliseconds: 3000),
|
||||
pause: const Duration(milliseconds: 30000),
|
||||
repeatForever: true,
|
||||
stopPauseOnTap: true,
|
||||
textAlign: TextAlign.start,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
|
|
@ -19,6 +19,7 @@ dependencies:
|
|||
url_launcher: ^5.7.10
|
||||
intl: ^0.17.0
|
||||
flutter_socket_io: ^0.6.0
|
||||
animated_text_kit: ^3.1.2
|
||||
flutter_colorpicker: ^0.3.5
|
||||
catcher: ^0.4.1
|
||||
stack_trace: ^1.9.6
|
||||
|
|
Loading…
Reference in New Issue