merge-requests/34/merge
Sultan Khan 5 years ago
parent 5d112b5464
commit 1974e51602

@ -31,7 +31,7 @@ class DoctorProfile extends StatefulWidget {
} }
class _DoctorProfileState extends State<DoctorProfile> class _DoctorProfileState extends State<DoctorProfile>
with SingleTickerProviderStateMixin { with TickerProviderStateMixin {
TabController _tabController; TabController _tabController;
bool showFooterButton = false; bool showFooterButton = false;
var event = RobotProvider(); var event = RobotProvider();

@ -12,7 +12,7 @@ class Search extends StatefulWidget {
_SearchState createState() => _SearchState(); _SearchState createState() => _SearchState();
} }
class _SearchState extends State<Search> with SingleTickerProviderStateMixin { class _SearchState extends State<Search> with TickerProviderStateMixin {
TabController _tabController; TabController _tabController;
@override @override

@ -27,7 +27,7 @@ class NoiseBox extends StatefulWidget {
_NoiseBoxState createState() => _NoiseBoxState(); _NoiseBoxState createState() => _NoiseBoxState();
} }
class _NoiseBoxState extends State<NoiseBox> with SingleTickerProviderStateMixin { class _NoiseBoxState extends State<NoiseBox> with TickerProviderStateMixin {
AnimationController _animationController; AnimationController _animationController;
int _density; int _density;
@ -107,7 +107,9 @@ class NoisePainter extends CustomPainter {
@required this.density, @required this.density,
}) : assert(width != null), }) : assert(width != null),
assert(height != 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<Color> colors = <Color>[ List<Color> colors = <Color>[
Colors.black, Colors.black,

@ -20,7 +20,7 @@ class DoctorProfilePage extends StatefulWidget {
} }
class _DoctorProfilePageState extends State<DoctorProfilePage> class _DoctorProfilePageState extends State<DoctorProfilePage>
with SingleTickerProviderStateMixin { with TickerProviderStateMixin {
TabController _tabController; TabController _tabController;
final PatientDoctorAppointment patientDoctorAppointment; final PatientDoctorAppointment patientDoctorAppointment;
@ -61,10 +61,9 @@ class _DoctorProfilePageState extends State<DoctorProfilePage>
margin: EdgeInsets.all(5), margin: EdgeInsets.all(5),
width: 50, width: 50,
height: 50, height: 50,
decoration: decoration: BoxDecoration(
BoxDecoration(shape: BoxShape.circle, shape: BoxShape.circle,
color: Colors.grey color: Colors.grey),
),
child: Icon( child: Icon(
Icons.calendar_view_day, Icons.calendar_view_day,
size: 25, size: 25,
@ -82,10 +81,9 @@ class _DoctorProfilePageState extends State<DoctorProfilePage>
margin: EdgeInsets.all(5), margin: EdgeInsets.all(5),
width: 50, width: 50,
height: 50, height: 50,
decoration: decoration: BoxDecoration(
BoxDecoration(shape: BoxShape.circle, shape: BoxShape.circle,
color: Colors.grey color: Colors.grey),
),
child: Icon( child: Icon(
Icons.format_list_bulleted, Icons.format_list_bulleted,
size: 25, size: 25,
@ -151,8 +149,7 @@ class _DoctorProfilePageState extends State<DoctorProfilePage>
indicatorWeight: 3.0, indicatorWeight: 3.0,
tabs: [ tabs: [
Tab( Tab(
child: Text( child: Text('Doctor Information',
'Doctor Information',
style: TextStyle(color: Colors.black))), style: TextStyle(color: Colors.black))),
Tab( Tab(
child: Text( child: Text(
@ -166,7 +163,12 @@ class _DoctorProfilePageState extends State<DoctorProfilePage>
height: MediaQuery.of(context).size.height * 0.8, height: MediaQuery.of(context).size.height * 0.8,
child: TabBarView( child: TabBarView(
physics: BouncingScrollPhysics(), physics: BouncingScrollPhysics(),
children: [DoctorInformation(doctorProfile: model.doctorProfile,), Container()], children: [
DoctorInformation(
doctorProfile: model.doctorProfile,
),
Container()
],
controller: _tabController, controller: _tabController,
), ),
), ),

@ -11,6 +11,7 @@ dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
# Localizations # Localizations
flutter_localizations: flutter_localizations:
sdk: flutter sdk: flutter

Loading…
Cancel
Save