mirror of
https://github.com/SoPat712/RUSwipeShare.git
synced 2025-08-21 19:08:46 -04:00
Clicking a buy item navigates to test page
This commit is contained in:
10
lib/buy.dart
10
lib/buy.dart
@@ -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])),
|
||||
// );
|
Reference in New Issue
Block a user