Clicking a buy item navigates to test page

This commit is contained in:
NATHANIEL ENDICK
2023-02-26 00:21:06 -05:00
parent 060216cd7c
commit 7e088b0a62

View File

@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:ruswipeshare/sell.dart';
class BuyScreen extends StatefulWidget {
const BuyScreen({Key? key}) : super(key: key);
@@ -39,7 +40,12 @@ class OffersListView extends StatelessWidget {
return ListView.builder(
itemCount: 30,
itemBuilder: (BuildContext context, int index) {
return Container(
return InkWell(
onTap: () {
Navigator.push(context,
MaterialPageRoute(builder: (context) => const SellScreen()));
},
child: Container(
height: 80,
color: Colors.blue,
margin: const EdgeInsets.only(top: 4, bottom: 4),
@@ -98,6 +104,7 @@ class OffersListView extends StatelessWidget {
)
],
),
),
);
});
}
@@ -105,5 +112,4 @@ class OffersListView extends StatelessWidget {
// return Container(
// height: 80,
// color: Colors.amber[colorCodes[index % colorCodes.length]],
// child: Center(child: Text(entries[index % entries.length])),
// );