From aca2a7790454ddace73d6fc92e50b53726841147 Mon Sep 17 00:00:00 2001 From: toly <1981462002@qq.com> Date: Fri, 14 May 2021 14:47:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=93=E5=AD=97=E6=9C=BA?= =?UTF-8?q?=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/permanent/animated_text.dart | 66 ------------------- 1 file changed, 66 deletions(-) delete mode 100644 lib/views/components/permanent/animated_text.dart diff --git a/lib/views/components/permanent/animated_text.dart b/lib/views/components/permanent/animated_text.dart deleted file mode 100644 index 93984ef..0000000 --- a/lib/views/components/permanent/animated_text.dart +++ /dev/null @@ -1,66 +0,0 @@ -// -// import 'package:flutter/material.dart'; -// -// class AnimatedText extends StatefulWidget { -// final String text; -// final int delayInMilliseconds; -// final int durationInMilliseconds; -// final TextStyle textStyle; -// -// AnimatedText(this.text, this.delayInMilliseconds, -// {this.durationInMilliseconds: 2500, this.textStyle}); -// -// @override createState() => AnimatedTextState(); -// } -// -// class AnimatedTextState extends State -// with SingleTickerProviderStateMixin { -// -// String currentText = ''; -// -// AnimationController _controller; -// -// List get textRunes=> widget.text.runes.toList(); -// int get value => _controller.value.toInt(); -// -// int curIndex = 0; -// -// -// @override -// void initState() { -// super.initState(); -// currentText = String.fromCharCode(textRunes[0]); -// -// _controller = AnimationController( -// vsync: this, -// value: 0.0, -// lowerBound: 0.0, -// upperBound: textRunes.length.toDouble(), -// duration: Duration(milliseconds: widget.durationInMilliseconds)); -// -// _controller..addListener(_updateText)..forward(); -// -// } -// -// _updateText(){ -// if (value > curIndex && value < textRunes.length) { -// setState(() { -// curIndex = value; -// currentText += String.fromCharCode(textRunes[curIndex]); -// }); -// } -// } -// -// @override -// void dispose() { -// _controller.dispose(); -// super.dispose(); -// } -// -// @override -// Widget build(BuildContext context) { -// return Text(currentText, textAlign: TextAlign.left, -// style: widget.textStyle ?? -// TextStyle(fontWeight: FontWeight.w600, fontSize: 20.0),); -// } -// } \ No newline at end of file