Skip to content

Commit 1928c76

Browse files
committed
restructure
1 parent cc89c1c commit 1928c76

19 files changed

+226
-206
lines changed

.flutter-plugins-dependencies

Lines changed: 0 additions & 1 deletion
This file was deleted.

.gitignore

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,40 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
16
.DS_Store
2-
.dart_tool/
3-
4-
.packages
5-
.pub/
6-
7-
build/
8-
9-
.flutter-plugins
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
1011

1112
# IntelliJ related
1213
*.iml
1314
*.ipr
1415
*.iws
15-
.idea/
16+
.idea/
17+
.android/
18+
.ios/
19+
.vscode/
20+
21+
# The .vscode folder contains launch configuration and tasks you configure in
22+
# VS Code which you may wish to be included in version control, so this line
23+
# is commented out by default.
24+
#.vscode/
25+
26+
# Flutter/Dart/Pub related
27+
**/doc/api/
28+
.dart_tool/
29+
.flutter-plugins
30+
.flutter-plugins-dependencies
31+
.packages
32+
.pub-cache/
33+
.pub/
34+
/build/
35+
36+
# Web related
37+
lib/generated_plugin_registrant.dart
38+
39+
# Exceptions to above rules.
40+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

lib/const.dart

Lines changed: 0 additions & 6 deletions
This file was deleted.

lib/constants/app_constants.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class AppConstants {
2+
static const appTitle = "Flutter Chat Demo";
3+
static const loginTitle = "Login";
4+
static const homeTitle = "Home";
5+
static const chatTitle = "Chat";
6+
static const settingsTitle = "Settings";
7+
static const fullPhotoTitle = "Full Photo";
8+
}

lib/constants/color_constants.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import 'dart:ui';
2+
3+
class ColorConstants {
4+
static const themeColor = Color(0xfff5a623);
5+
static const primaryColor = Color(0xff203152);
6+
static const greyColor = Color(0xffaeaeae);
7+
static const greyColor2 = Color(0xffE8E8E8);
8+
}

lib/constants/constants.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export 'color_constants.dart';

lib/main.dart

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import 'package:firebase_core/firebase_core.dart';
22
import 'package:flutter/material.dart';
3+
import 'package:flutter_chat_demo/constants/app_constants.dart';
34

4-
import 'const.dart';
5-
import 'login.dart';
5+
import 'constants/color_constants.dart';
6+
import 'pages/pages.dart';
67

78
void main() async {
89
WidgetsFlutterBinding.ensureInitialized();
@@ -14,11 +15,11 @@ class MyApp extends StatelessWidget {
1415
@override
1516
Widget build(BuildContext context) {
1617
return MaterialApp(
17-
title: 'Chat Demo',
18+
title: AppConstants.appTitle,
1819
theme: ThemeData(
19-
primaryColor: themeColor,
20+
primaryColor: ColorConstants.themeColor,
2021
),
21-
home: LoginScreen(title: 'CHAT DEMO'),
22+
home: LoginPage(),
2223
debugShowCheckedModeBanner: false,
2324
);
2425
}

lib/models/models.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export 'user_chat.dart';
File renamed without changes.

0 commit comments

Comments
 (0)