diff --git a/lib/pages/BookAppointment/DoctorProfile.dart b/lib/pages/BookAppointment/DoctorProfile.dart index 3a6a5bf9..d3b6fc7c 100644 --- a/lib/pages/BookAppointment/DoctorProfile.dart +++ b/lib/pages/BookAppointment/DoctorProfile.dart @@ -31,7 +31,7 @@ class DoctorProfile extends StatefulWidget { } class _DoctorProfileState extends State - with SingleTickerProviderStateMixin { + with TickerProviderStateMixin { TabController _tabController; bool showFooterButton = false; var event = RobotProvider(); diff --git a/lib/pages/BookAppointment/Search.dart b/lib/pages/BookAppointment/Search.dart index ee9bbfdf..9af6b449 100644 --- a/lib/pages/BookAppointment/Search.dart +++ b/lib/pages/BookAppointment/Search.dart @@ -12,7 +12,7 @@ class Search extends StatefulWidget { _SearchState createState() => _SearchState(); } -class _SearchState extends State with SingleTickerProviderStateMixin { +class _SearchState extends State with TickerProviderStateMixin { TabController _tabController; @override diff --git a/lib/pages/conference/widgets/noise_box.dart b/lib/pages/conference/widgets/noise_box.dart index 5f638127..5087415f 100644 --- a/lib/pages/conference/widgets/noise_box.dart +++ b/lib/pages/conference/widgets/noise_box.dart @@ -27,7 +27,7 @@ class NoiseBox extends StatefulWidget { _NoiseBoxState createState() => _NoiseBoxState(); } -class _NoiseBoxState extends State with SingleTickerProviderStateMixin { +class _NoiseBoxState extends State with TickerProviderStateMixin { AnimationController _animationController; int _density; @@ -107,7 +107,9 @@ class NoisePainter extends CustomPainter { @required this.density, }) : assert(width != null), assert(height != null), - assert(density != null && density >= 3 && density < math.min(width, height)); + assert(density != null && + density >= 3 && + density < math.min(width, height)); List colors = [ Colors.black, diff --git a/lib/pages/medical/doctor/doctor_profile_page.dart b/lib/pages/medical/doctor/doctor_profile_page.dart index 79f8c69e..2b19ba3d 100644 --- a/lib/pages/medical/doctor/doctor_profile_page.dart +++ b/lib/pages/medical/doctor/doctor_profile_page.dart @@ -20,7 +20,7 @@ class DoctorProfilePage extends StatefulWidget { } class _DoctorProfilePageState extends State - with SingleTickerProviderStateMixin { + with TickerProviderStateMixin { TabController _tabController; final PatientDoctorAppointment patientDoctorAppointment; @@ -61,10 +61,9 @@ class _DoctorProfilePageState extends State margin: EdgeInsets.all(5), width: 50, height: 50, - decoration: - BoxDecoration(shape: BoxShape.circle, - color: Colors.grey - ), + decoration: BoxDecoration( + shape: BoxShape.circle, + color: Colors.grey), child: Icon( Icons.calendar_view_day, size: 25, @@ -82,10 +81,9 @@ class _DoctorProfilePageState extends State margin: EdgeInsets.all(5), width: 50, height: 50, - decoration: - BoxDecoration(shape: BoxShape.circle, - color: Colors.grey - ), + decoration: BoxDecoration( + shape: BoxShape.circle, + color: Colors.grey), child: Icon( Icons.format_list_bulleted, size: 25, @@ -151,8 +149,7 @@ class _DoctorProfilePageState extends State indicatorWeight: 3.0, tabs: [ Tab( - child: Text( - 'Doctor Information', + child: Text('Doctor Information', style: TextStyle(color: Colors.black))), Tab( child: Text( @@ -166,7 +163,12 @@ class _DoctorProfilePageState extends State height: MediaQuery.of(context).size.height * 0.8, child: TabBarView( physics: BouncingScrollPhysics(), - children: [DoctorInformation(doctorProfile: model.doctorProfile,), Container()], + children: [ + DoctorInformation( + doctorProfile: model.doctorProfile, + ), + Container() + ], controller: _tabController, ), ), diff --git a/pubspec.yaml b/pubspec.yaml index 2d334225..657f7b78 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,6 +11,7 @@ dependencies: flutter: sdk: flutter + # Localizations flutter_localizations: sdk: flutter