scroll change

merge-requests/125/head
Salman Afzal 6 years ago
parent 50e9dc0980
commit 5f6e9104d0

@ -65,7 +65,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
flex: 2, flex: 2,
child: RoundedContainer( child: RoundedContainer(
child: CircularPercentIndicator( child: CircularPercentIndicator(
radius: 100.0, radius: 100,
animation: true, animation: true,
animationDuration: 1200, animationDuration: 1200,
lineWidth: 7.0, lineWidth: 7.0,
@ -78,7 +78,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
fontSize: SizeConfig.textMultiplier * 4), fontSize: SizeConfig.textMultiplier * 4),
AppText("Out-Patients", AppText("Out-Patients",
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
fontSize: SizeConfig.textMultiplier * 1.2, fontSize: SizeConfig.textMultiplier * 1.1,
color: Colors.grey[800]), color: Colors.grey[800]),
], ],
), ),

@ -32,12 +32,15 @@ class PatientProfileWidget extends StatelessWidget {
// ProfileStatusInfoWidget() // ProfileStatusInfoWidget()
// ]); // ]);
return Container( return CustomScrollView(primary: false, slivers: <Widget>[
child: Column(children: <Widget>[ SliverList(
delegate: SliverChildListDelegate(
[
Expanded( Expanded(
flex: 1, flex: 1,
child: child: Row(
Row(mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Column(children: <Widget>[ Column(children: <Widget>[
Container( Container(
padding: EdgeInsets.only(top: 20), padding: EdgeInsets.only(top: 20),
@ -58,7 +61,9 @@ class PatientProfileWidget extends StatelessWidget {
fontSize: 16, fontSize: 16,
), ),
AppText( AppText(
patient.genderDescription.toString() + ', ' + patient.age, patient.genderDescription.toString() +
', ' +
patient.age,
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
fontSize: 16, fontSize: 16,
) )
@ -68,10 +73,20 @@ class PatientProfileWidget extends StatelessWidget {
]), ]),
]), ]),
), ),
Expanded( ],
flex: 2, ),
child: ProfileMedicalInfoWidget(patient: patient), ),
) SliverPadding(
])); padding: const EdgeInsets.fromLTRB(20, 30, 15, 10),
sliver: ProfileMedicalInfoWidget())
]);
// Container(
// child: Column(children: <Widget>[
// Expanded(
// flex: 2,
// child: ,
// )
// ]));
} }
} }

@ -23,10 +23,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
// final double contWidth = SizeConfig.realScreenWidth * 0.70; // final double contWidth = SizeConfig.realScreenWidth * 0.70;
// final double contHeight = SizeConfig.screenHeight * 0.30; // final double contHeight = SizeConfig.screenHeight * 0.30;
return CustomScrollView(primary: false, slivers: <Widget>[ return SliverGrid.count(
SliverPadding(
padding: const EdgeInsets.fromLTRB(20, 30, 15, 10),
sliver: SliverGrid.count(
crossAxisSpacing: 10, crossAxisSpacing: 10,
mainAxisSpacing: 20, mainAxisSpacing: 20,
crossAxisCount: 2, crossAxisCount: 2,
@ -80,7 +77,6 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
route: PATIENT_ORDERS, route: PATIENT_ORDERS,
name: 'Orders', name: 'Orders',
icon: 'radiology-1.png'), icon: 'radiology-1.png'),
]))
]); ]);
// child: ListView( // child: ListView(
// children: <Widget>[ // children: <Widget>[

Loading…
Cancel
Save