Lynnesbian
caf0d03e3b
- split app into separate pages/routes - put models in their own folder - use provider to sync state between pages - generate a preset list of items instead of an infinite amount - added a splash screen
17 lines
No EOL
275 B
Dart
17 lines
No EOL
275 B
Dart
import 'package:flutter/foundation.dart';
|
|
|
|
class YahooAuctionsItem {
|
|
String id;
|
|
String name;
|
|
int price;
|
|
|
|
YahooAuctionsItem({
|
|
@required this.id,
|
|
@required this.name,
|
|
@required this.price
|
|
});
|
|
|
|
double getLocalPrice() {
|
|
return this.price / 75.0;
|
|
}
|
|
} |