update
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
import 'package:fcs/domain/constants.dart';
|
||||
import 'package:fcs/domain/entities/faq.dart';
|
||||
import 'package:fcs/helpers/theme.dart';
|
||||
import 'package:fcs/localization/app_translations.dart';
|
||||
import 'package:fcs/pages/buying_instruction/buying_online.dart';
|
||||
import 'package:fcs/pages/faq/faq_edit_page.dart';
|
||||
import 'package:fcs/pages/main/model/language_model.dart';
|
||||
import 'package:fcs/pages/main/model/main_model.dart';
|
||||
import 'package:fcs/pages/payment_methods/payment_method_page.dart';
|
||||
import 'package:fcs/pages/rates/shipment_rates.dart';
|
||||
import 'package:fcs/pages/widgets/bottom_up_page_route.dart';
|
||||
import 'package:fcs/pages/widgets/fcs_expansion_tile.dart';
|
||||
import 'package:fcs/pages/widgets/local_text.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
@@ -26,8 +24,8 @@ class FAQListPage extends StatefulWidget {
|
||||
|
||||
class _FAQListPageState extends State<FAQListPage>
|
||||
with SingleTickerProviderStateMixin {
|
||||
AnimationController _controller;
|
||||
Animation<double> _iconTurns;
|
||||
AnimationController? _controller;
|
||||
Animation<double>? _iconTurns;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -35,7 +33,7 @@ class _FAQListPageState extends State<FAQListPage>
|
||||
_controller = AnimationController(duration: _kExpand, vsync: this);
|
||||
var _halfTween = Tween<double>(begin: 0.0, end: 0.5);
|
||||
var _easeInTween = CurveTween(curve: Curves.easeIn);
|
||||
_iconTurns = _controller.drive(_halfTween.chain(_easeInTween));
|
||||
_iconTurns = _controller?.drive(_halfTween.chain(_easeInTween));
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -139,7 +137,7 @@ class _FAQListPageState extends State<FAQListPage>
|
||||
);
|
||||
}
|
||||
|
||||
Widget _pageLink(String linkPage, String text) {
|
||||
Widget _pageLink(String? linkPage, String? text) {
|
||||
return linkPage == null || linkPage == "" || text == null || text == ""
|
||||
? Container()
|
||||
: Row(
|
||||
|
||||
Reference in New Issue
Block a user