Skip to content

SylarBurns/project_locals

Repository files navigation

지역감정

지역 주민과 교류하고 유대관계를 쌓아가기 위한 앱

Main Features

구글 로그인 실시간 인기 글 게시판 별 최신 글
검색 기능 지역 인증 알림 기능
채팅 기능 다양한 테마 댓글과 대댓글

How to Use

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

Libraries

Routes

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(),
};

Main

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,
    );
  }
}

About

지역 주민과 교류하고 유대관계를 쌓아가기 위한 앱

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages