Skip to content

Commit

Permalink
Reorganize Files
Browse files Browse the repository at this point in the history
*Move files into categorization folders.
*Create explicit path references for imports.
  • Loading branch information
rayliverified committed Jun 7, 2018
1 parent 5967f54 commit 0b03568
Show file tree
Hide file tree
Showing 19 changed files with 29 additions and 28 deletions.
2 changes: 1 addition & 1 deletion lib/bottom_menu_items.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'icons.dart';
import 'package:stream_games/icons.dart';

enum BottomMenu {
games,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'package:flutter/material.dart';

import 'model/game.dart';
import "item_game_box.dart";
import "page_game_details.dart";
import 'package:stream_games/model/game.dart';
import "package:stream_games/ui/item_game_box.dart";
import "package:stream_games/page/page_game_details.dart";

class GameContainerItem extends StatelessWidget {
GameContainerItem(this.buildContext, this.game);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'package:flutter/material.dart';

import 'icons.dart';
import 'model/game.dart';
import 'item_game_box.dart';
import 'item_header_diagonal.dart';
import 'item_rating.dart';
import 'package:stream_games/icons.dart';
import 'package:stream_games/model/game.dart';
import 'package:stream_games/ui/item_game_box.dart';
import 'package:stream_games/ui/item_header_diagonal.dart';
import 'package:stream_games/ui/item_rating.dart';

class GameDetailHeader extends StatelessWidget {
GameDetailHeader(this.game);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';

import 'item_image_height.dart';
import 'package:stream_games/ui/item_image_height.dart';

class ScreenshotContainerItem extends StatelessWidget {
ScreenshotContainerItem(this.buildContext, this.screenshot, {this.height = 400.0});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';

import 'item_game_container.dart';
import 'model/game.dart';
import 'package:stream_games/component/item_game_container.dart';
import 'package:stream_games/model/game.dart';

class HorizontalGameController extends StatelessWidget {
HorizontalGameController(this.gameItems);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';

import 'item_screenshot_container.dart';
import 'package:stream_games/component/item_screenshot_container.dart';

class HorizontalScreenshotController extends StatelessWidget {
HorizontalScreenshotController(this.screenshots);
Expand Down
4 changes: 2 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';

import 'page_main.dart';
import 'themes.dart';
import 'package:stream_games/page/page_main.dart';
import 'package:stream_games/themes.dart';

void main() => runApp(new FlutterGames());

Expand Down
2 changes: 1 addition & 1 deletion lib/model/repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ final Game mgsurvive = new Game(
screenshots: [
'https://raw.githubusercontent.com/searchy2/FlutterGames/master/images/screenshot/mgsurvive_1.jpg',
'https://raw.githubusercontent.com/searchy2/FlutterGames/master/images/screenshot/mgsurvive_2.jpg',
'https://raw.githubusercontent.com/searchy2/FlutterGames/master/images/screenshot/mgsurvive_2.jpg',
'https://raw.githubusercontent.com/searchy2/FlutterGames/master/images/screenshot/mgsurvive_3.jpg',
'https://raw.githubusercontent.com/searchy2/FlutterGames/master/images/screenshot/mgsurvive_4.jpg',
],
);
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';

import 'model/game.dart';
import 'item_header_game.dart';
import 'item_description.dart';
import 'scroll_horizontal_screenshots.dart';
import 'package:stream_games/model/game.dart';
import 'package:stream_games/component/item_header_game.dart';
import 'package:stream_games/component/item_description.dart';
import 'package:stream_games/controller/scroll_horizontal_screenshots.dart';

class GameDetailsPage extends StatefulWidget {
GameDetailsPage(this.game, {Key key}) : super(key: key);
Expand Down
4 changes: 2 additions & 2 deletions lib/page_games.dart → lib/page/page_games.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';

import 'scroll_horizontal_game.dart';
import 'model/repository.dart';
import 'package:stream_games/controller/scroll_horizontal_game.dart';
import 'package:stream_games/model/repository.dart';

class GamesPage extends StatefulWidget {
GamesPage({Key key}) : super(key: key);
Expand Down
8 changes: 4 additions & 4 deletions lib/page_main.dart → lib/page/page_main.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';

import 'bottom_menu_items.dart';
import 'icons.dart';
import 'page_games.dart';
import 'page_coming_soon.dart';
import 'package:stream_games/bottom_menu_items.dart';
import 'package:stream_games/icons.dart';
import 'package:stream_games/page/page_games.dart';
import 'package:stream_games/page/page_coming_soon.dart';

class MainPage extends StatefulWidget {
@override
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/item_game_box.dart → lib/ui/item_game_box.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';

import 'model/game.dart';
import 'package:stream_games/model/game.dart';

class GameBoxItem extends StatelessWidget {
static const IMAGE_RATIO = 1.50;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion lib/item_rating.dart → lib/ui/item_rating.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'model/game.dart';

import 'package:stream_games/model/game.dart';

class RatingInformation extends StatelessWidget {
RatingInformation(this.game);
Expand Down

0 comments on commit 0b03568

Please sign in to comment.