1+ import 'package:bezier/bezier.dart' ;
12import 'package:flutter/material.dart' ;
23import 'package:fluttertoast/fluttertoast.dart' ;
34import 'package:gsy_github_app_flutter/common/dao/issue_dao.dart' ;
@@ -10,13 +11,15 @@ import 'package:gsy_github_app_flutter/page/repository_detail_issue_list_page.da
1011import 'package:gsy_github_app_flutter/page/repository_detail_readme_page.dart' ;
1112import 'package:gsy_github_app_flutter/page/repository_file_list_page.dart' ;
1213import 'package:gsy_github_app_flutter/page/repostory_detail_info_page.dart' ;
14+ import 'package:gsy_github_app_flutter/widget/anima/curves_bezier.dart' ;
1315import 'package:gsy_github_app_flutter/widget/gsy_bottom_action_bar.dart' ;
1416import 'package:gsy_github_app_flutter/widget/gsy_common_option_widget.dart' ;
1517import 'package:gsy_github_app_flutter/widget/gsy_icon_text.dart' ;
1618import 'package:gsy_github_app_flutter/widget/gsy_tabbar_widget.dart' ;
1719import 'package:gsy_github_app_flutter/widget/gsy_title_bar.dart' ;
1820import 'package:gsy_github_app_flutter/widget/repos_header_item.dart' ;
1921import 'package:scoped_model/scoped_model.dart' ;
22+ import 'package:vector_math/vector_math.dart' ;
2023
2124/**
2225 * 仓库详情
@@ -265,7 +268,7 @@ class _RepositoryDetailPageState extends State<RepositoryDetailPage>
265268 _getBranchList ();
266269 _refresh ();
267270 animationController =
268- new AnimationController (vsync: this , duration: Duration (seconds : 2 ));
271+ new AnimationController (vsync: this , duration: Duration (milliseconds : 800 ));
269272 animationController.forward ();
270273 }
271274
@@ -305,8 +308,10 @@ class _RepositoryDetailPageState extends State<RepositoryDetailPage>
305308 onPageChanged: (index) {
306309 reposDetailModel.setCurrentIndex (index);
307310 },
311+
308312 floatingActionButton: ScaleTransition (
309- scale: CurvedAnimation (parent: animationController, curve: Curves .fastLinearToSlowEaseIn),
313+ //scale: CurvedAnimation(parent: animationController, curve: Curves.bounceInOut),
314+ scale: CurvedAnimation (parent: animationController, curve: CurveBezier ()),
310315 child: FloatingActionButton (
311316 onPressed: () {
312317 _createIssue ();
0 commit comments