Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9cd4b21

Browse files
Add animated button example
1 parent 79ca159 commit 9cd4b21

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

‎lib/pages/animated_buttons.dart

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import 'package:animated_button/animated_button.dart';
2+
import 'package:flutter/material.dart';
3+
4+
class AnimatedButtonsExample extends StatefulWidget {
5+
const AnimatedButtonsExample({ Key? key }) : super(key: key);
6+
7+
@override
8+
_AnimatedButtonsExampleState createState() => _AnimatedButtonsExampleState();
9+
}
10+
11+
class _AnimatedButtonsExampleState extends State<AnimatedButtonsExample> {
12+
@override
13+
Widget build(BuildContext context) {
14+
return Scaffold(
15+
appBar: AppBar(
16+
backgroundColor: Colors.white,
17+
elevation: 0,
18+
title: Column(
19+
children: [
20+
Text('AnimatedButtons', style: TextStyle(
21+
color: Colors.black,
22+
),),
23+
SizedBox(height: 2,),
24+
Text('@theflutterlover', style: TextStyle(
25+
color: Colors.grey.shade600,
26+
fontSize: 15,
27+
),),
28+
],
29+
),
30+
),
31+
body: Container(
32+
width: double.infinity,
33+
child: Column(
34+
mainAxisAlignment: MainAxisAlignment.center,
35+
children: <Widget>[
36+
AnimatedButton(
37+
child: Text(
38+
'Simple button',
39+
style: TextStyle(
40+
fontSize: 22,
41+
color: Colors.white,
42+
fontWeight: FontWeight.w500,
43+
),
44+
),
45+
onPressed: () {},
46+
),
47+
]
48+
),
49+
),
50+
);
51+
}
52+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /