add stepper in all soap steps
parent
ff157b417e
commit
e9d04527a6
@ -0,0 +1,45 @@
|
|||||||
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
||||||
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/patients/profile/soap_update/steps_widget.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class SOAPStepHeader extends StatelessWidget {
|
||||||
|
const SOAPStepHeader({
|
||||||
|
Key key,
|
||||||
|
this.currentIndex, this.changePageViewIndex,
|
||||||
|
}) : super(key: key);
|
||||||
|
|
||||||
|
final int currentIndex;
|
||||||
|
final Function changePageViewIndex;
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Column(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
TranslationBase.of(context).createNew,
|
||||||
|
fontSize: 3 * SizeConfig.textMultiplier,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
),
|
||||||
|
AppText(TranslationBase.of(context).episode,
|
||||||
|
fontSize: 3.5 * SizeConfig.textMultiplier,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
|
Container(
|
||||||
|
color: Theme.of(context).scaffoldBackgroundColor,
|
||||||
|
child: StepsWidget(
|
||||||
|
index: currentIndex,
|
||||||
|
changeCurrentTab: changePageViewIndex,
|
||||||
|
height: 100,//MediaQuery.of(context).size.height * 0.17,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
SizedBox(
|
||||||
|
height: 30,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue