mirror of
https://github.com/SoPat712/RUSwipeShare.git
synced 2025-10-30 04:30:36 -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:flutter/material.dart';
|
||||||
|
import 'package:ruswipeshare/sell.dart';
|
||||||
|
|
||||||
class BuyScreen extends StatefulWidget {
|
class BuyScreen extends StatefulWidget {
|
||||||
const BuyScreen({Key? key}) : super(key: key);
|
const BuyScreen({Key? key}) : super(key: key);
|
||||||
@@ -39,7 +40,12 @@ class OffersListView extends StatelessWidget {
|
|||||||
return ListView.builder(
|
return ListView.builder(
|
||||||
itemCount: 30,
|
itemCount: 30,
|
||||||
itemBuilder: (BuildContext context, int index) {
|
itemBuilder: (BuildContext context, int index) {
|
||||||
return Container(
|
return InkWell(
|
||||||
|
onTap: () {
|
||||||
|
Navigator.push(context,
|
||||||
|
MaterialPageRoute(builder: (context) => const SellScreen()));
|
||||||
|
},
|
||||||
|
child: Container(
|
||||||
height: 80,
|
height: 80,
|
||||||
color: Colors.blue,
|
color: Colors.blue,
|
||||||
margin: const EdgeInsets.only(top: 4, bottom: 4),
|
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(
|
// return Container(
|
||||||
// height: 80,
|
// height: 80,
|
||||||
// color: Colors.amber[colorCodes[index % colorCodes.length]],
|
// color: Colors.amber[colorCodes[index % colorCodes.length]],
|
||||||
// child: Center(child: Text(entries[index % entries.length])),
|
|
||||||
// );
|
// );
|
||||||
Reference in New Issue
Block a user