You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
2.3 KiB
Dart
74 lines
2.3 KiB
Dart
import 'package:diplomaticquarterapp/core/viewModels/pharmacyModule/wishlist_view_model.dart';
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
import 'package:diplomaticquarterapp/pages/pharmacies/ProductCheckTypeWidget.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
|
|
void main() => runApp(WishlistPage());
|
|
|
|
class WishlistPage extends StatefulWidget {
|
|
|
|
@override
|
|
_WishlistPageState createState() => _WishlistPageState();
|
|
}
|
|
|
|
class _WishlistPageState extends State<WishlistPage> {
|
|
bool isTrue = true;
|
|
|
|
Widget build(BuildContext context) {
|
|
return BaseView<WishListViewModel>(
|
|
onModelReady: (model) => model.getWishlistData(),
|
|
builder: (_, model, wi) => AppScaffold(
|
|
appBarTitle: 'Wishlist page',
|
|
isShowAppBar: true,
|
|
isPharmacy: true,
|
|
body: Container(
|
|
// child: ListView.builder(
|
|
// itemCount: 3,
|
|
// itemBuilder: (BuildContext context, int index) {
|
|
// return Column(
|
|
// children: [
|
|
// Container(
|
|
// child: productTile(productName: 'Panadol Extra 500 MG', productPrice: '10.00', productRate: 3.00,),
|
|
// ),
|
|
// Divider(height: 1, color: Colors.grey)
|
|
// ],
|
|
// );
|
|
// }),
|
|
child: Column(
|
|
children: [
|
|
// Expanded(
|
|
// flex: 1,
|
|
// child: Container(
|
|
// color: Colors.white,
|
|
// width: double.infinity,
|
|
// height: 30,
|
|
// child: IconButton(
|
|
// alignment: Alignment.topRight,
|
|
// icon: Icon(Icons.art_track),
|
|
// color: Colors.blueAccent,
|
|
// onPressed: () {
|
|
// setState(() {
|
|
// isTrue = !isTrue;
|
|
// });
|
|
// },
|
|
// ),
|
|
// ),
|
|
// ),
|
|
Expanded(
|
|
flex: 20,
|
|
child: Container(
|
|
width: double.infinity,
|
|
height: MediaQuery.of(context).size.height * 0.85, //250,
|
|
child: ProductCheckTypeWidget(isTrue, model.wishListList),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|