fix pharmacies list

merge-requests/519/head
Mohammad Aljammal 5 years ago
parent a0b0518815
commit 0e459de1a3

@ -23,7 +23,6 @@ class PharmaciesListScreen extends StatefulWidget {
final String url; final String url;
// In the constructor, require a item id.
PharmaciesListScreen({Key key, @required this.itemID, this.url}) PharmaciesListScreen({Key key, @required this.itemID, this.url})
: super(key: key); : super(key: key);
@ -32,18 +31,9 @@ class PharmaciesListScreen extends StatefulWidget {
} }
class _PharmaciesListState extends State<PharmaciesListScreen> { class _PharmaciesListState extends State<PharmaciesListScreen> {
var _data;
Helpers helpers = new Helpers(); Helpers helpers = new Helpers();
ProjectViewModel projectsProvider; ProjectViewModel projectsProvider;
bool _isInit = true;
//bool _isOutOfStuck = false;
@override
void didChangeDependencies() {
super.didChangeDependencies();
_isInit = false;
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -145,9 +135,9 @@ class _PharmaciesListState extends State<PharmaciesListScreen> {
? Alignment.topRight ? Alignment.topRight
: Alignment.topLeft, : Alignment.topLeft,
), ),
Expanded( Container(
child: Container(
width: SizeConfig.screenWidth * 0.99, width: SizeConfig.screenWidth * 0.99,
margin: EdgeInsets.only(left: 10,right: 10),
child: ListView.builder( child: ListView.builder(
shrinkWrap: true, shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(), physics: const NeverScrollableScrollPhysics(),
@ -155,6 +145,7 @@ class _PharmaciesListState extends State<PharmaciesListScreen> {
.pharmaciesList.length, .pharmaciesList.length,
itemBuilder: (BuildContext context, int index) { itemBuilder: (BuildContext context, int index) {
return RoundedContainer( return RoundedContainer(
margin: EdgeInsets.only(top: 5),
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Expanded( Expanded(
@ -228,7 +219,6 @@ class _PharmaciesListState extends State<PharmaciesListScreen> {
), ),
); );
}), }),
),
) )
]), ]),
),),); ),),);

Loading…
Cancel
Save