지역 주민과 교류하고 유대관계를 쌓아가기 위한 앱
구글 로그인 | 실시간 인기 글 | 게시판 별 최신 글 |
---|---|---|
검색 기능 | 지역 인증 | 알림 기능 |
채팅 기능 | 다양한 테마 | 댓글과 대댓글 |
Step 1:
Download or clone this repo by using the link below:
https://github.com/SylarBurns/project_locals.git
Step 2:
Go to project root and execute the following command in console to get the required dependencies:
flutter pub get
Step 3:
This project uses naver_map_plugin version 0.9.6 and google_sign_in version 4.4.1. Make sure to visit those links and get the required steps done. When you want to use the naver map plugin, make a file named confidential.dart in src folder. Make sure the file looks like the code below.
class confidentialInfo{
final String _naverMapAPIClientID = "YOUR CLIENT ID";
final String _naverMapAPIClientSecrete="YOUR CLIENT SECRETE";
String getNaverCID(){
return _naverMapAPIClientID;
}
String getNaverCS(){
return _naverMapAPIClientSecrete;
}
}
Step 4: Finally, execute the following command in console to start the app
flutter run
- badges: ^1.2.0
- cached_network_image: ^2.5.1
- cloud_firestore: ^0.13.4+2
- firebase_analytics: ^5.0.6
- firebase_auth: ^0.15.5+3
- firebase_core: ^0.4.0+9
- firebase_storage: ^3.0.8
- flutter_phoenix: ^0.1.0
- full_screen_image: ^1.0.2
- google_sign_in: ^4.4.1
- http: ^0.12.0+2
- image_picker: ^0.6.7+22
- intl: ^0.16.1
- loading_animations: ^2.1.0
- naver_map_plugin: ^0.9.6
- rxdart: ^0.23.0
- scrollable_positioned_list: ^0.1.10
- shared_preferences: ^0.5.3+2
import 'package:flutter/material.dart';
import 'package:project_locals/loginPage.dart';
import 'package:project_locals/homeNavigator.dart';
import 'boardHome.dart';
import 'package:project_locals/registration.dart';
import 'package:project_locals/likedList.dart';
import 'package:project_locals/naver_map.dart';
import 'package:project_locals/selectThemeColor.dart';
final routes = {
'/': (BuildContext context) => loginPage(),
'/homeNavigator': (BuildContext context) => homeNavigator(),
'/board': (BuildContext context) => boardHome(),
'/registration': (BuildContext context)=> registration(),
'/likedList':(BuildContext context)=> likeList(),
'/naverMap' :(BuildContext context)=> naverMap(),
'/selectThemeColor':(BuildContext context)=>selectThemeColor(),
};
import 'package:flutter/material.dart';
import 'package:project_locals/routes.dart';
import 'package:project_locals/colors.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:flutter_phoenix/flutter_phoenix.dart';
void main() => runApp(Phoenix(child:MyApp()));
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
ThemeData appTheme;
@override
void initState() {
super.initState();
_loadTheme();
}
_loadTheme() async {
await SharedPreferences.getInstance().then((preference){
setState(() {
appTheme = _buildTheme(themeDataList.elementAt(preference.getInt('ThemeIndex') ?? 0));
});
});
}
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: appTheme,
title: 'ProjectLocals',
routes: routes,
);
}
}