// llamada a otra pantalla desde aqui
void _settingModalBottomSheetTratamiento(context){
**showModalBottomSheet**(
context: context,
builder: (BuildContext context){
return Container(
child: Wrap(
children: <Widget>[
ListTile(
leading: Icon(Icons.medical_services_rounded,color: Colors.blue,),
title: Text('Agregar Medicina'),
onTap: () {
Navigator.pop(context);
**Navigator.pushNamed(context, AddTratamientoScreen.routeName);**
}
),
],
),
);
}
);
}
// segunda pantalla
Flexible(
child: TextField(
keyboardType: TextInputType.number,
controller: _controllerDosis,
style: TextStyle(fontSize: 16.0),
textAlign: TextAlign.center,
decoration: InputDecoration(
***border: InputBorder.none,***
contentPadding: EdgeInsets.symmetric(vertical: 5.0),)))
Nota: No tengo border definido pero muestra esto