2020-09-29 15:34:00 +00:00
|
|
|
// Buypeeb - A simple Yahoo! Auctions tracker for Buyee users with mobile devices.
|
|
|
|
// I'm mostly making this just to learn Flutter.
|
|
|
|
// Copyright (C) 2020 Lynnesbian
|
|
|
|
//
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
2020-09-30 01:45:57 +00:00
|
|
|
import 'package:buyeeb_mobile/pages/main_page.dart';
|
|
|
|
import 'package:buyeeb_mobile/pages/splash.dart';
|
2020-09-29 15:31:31 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:sprintf/sprintf.dart';
|
2020-09-30 01:45:57 +00:00
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'models/yahoo_auctions_item.dart';
|
|
|
|
import 'models/user_listings.dart';
|
|
|
|
import 'package:sqflite/sqflite.dart';
|
2020-09-29 15:31:31 +00:00
|
|
|
import 'dart:math';
|
2020-09-30 01:45:57 +00:00
|
|
|
import 'dart:collection';
|
2020-09-29 15:31:31 +00:00
|
|
|
|
|
|
|
void main() {
|
2020-09-30 01:45:57 +00:00
|
|
|
runApp(
|
|
|
|
ChangeNotifierProvider(
|
|
|
|
create: (context) => UserListings(),
|
|
|
|
child: MaterialApp(
|
|
|
|
initialRoute: '/splash',
|
|
|
|
routes: {
|
|
|
|
'/': (context) => RouteHome(),
|
|
|
|
'/splash': (context) => RouteSplash(),
|
|
|
|
},
|
|
|
|
|
|
|
|
title: "Buypeeb Mobile",
|
|
|
|
theme: ThemeData(
|
|
|
|
primarySwatch: Colors.orange,
|
|
|
|
),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
);
|
2020-09-29 15:31:31 +00:00
|
|
|
}
|