Skip to content

03더미데이터만들기 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
165 changes: 131 additions & 34 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,44 +1,141 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/
# Created by https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,dart,flutter
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,visualstudiocode,dart,flutter

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/
### Dart ###
# See https://www.dartlang.org/guides/libraries/private-files

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
# Files and directories created by pub
.dart_tool/
.packages
build/
# If you're building an application, you may want to check-in your pubspec.lock
pubspec.lock

# Directory created by dartdoc
# If you don't generate documentation locally you can remove this line.
doc/api/

# dotenv environment variables file
.env*

# Avoid committing generated Javascript files:
*.dart.js
*.info.json # Produced by the --dump-info flag.
*.js # When generated by dart2js. Don't specify *.js if your
# project includes source files written in JavaScript.
*.js_
*.js.deps
*.js.map

.flutter-plugins
.flutter-plugins-dependencies
.packages

### Dart Patch ###
# dotenv environment variables file
.env

### Flutter ###
# Flutter/Dart/Pub related
**/doc/api/
.fvm/flutter_sdk
.pub-cache/
.pub/
/build/
coverage/
lib/generated_plugin_registrant.dart
# For library packages, don’t commit the pubspec.lock file.
# Regenerating the pubspec.lock file lets you test your package against the latest compatible versions of its dependencies.
# See https://dart.dev/guides/libraries/private-files#pubspeclock
#pubspec.lock

# Android related
**/android/**/gradle-wrapper.jar
**/android/.gradle
**/android/captures/
**/android/gradlew
**/android/gradlew.bat
**/android/key.properties
**/android/local.properties
**/android/**/GeneratedPluginRegistrant.java

# iOS/XCode related
**/ios/**/*.mode1v3
**/ios/**/*.mode2v3
**/ios/**/*.moved-aside
**/ios/**/*.pbxuser
**/ios/**/*.perspectivev3
**/ios/**/*sync/
**/ios/**/.sconsign.dblite
**/ios/**/.tags*
**/ios/**/.vagrant/
**/ios/**/DerivedData/
**/ios/**/Icon?
**/ios/**/Pods/
**/ios/**/.symlinks/
**/ios/**/profile
**/ios/**/xcuserdata
**/ios/.generated/
**/ios/Flutter/.last_build_id
**/ios/Flutter/App.framework
**/ios/Flutter/Flutter.framework
**/ios/Flutter/Flutter.podspec
**/ios/Flutter/Generated.xcconfig
**/ios/Flutter/app.flx
**/ios/Flutter/app.zip
**/ios/Flutter/flutter_assets/
**/ios/Flutter/flutter_export_environment.sh
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*

# Exceptions to above rules.
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix

### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Symbolication related
app.*.symbols
# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Obfuscation related
app.*.map.json
# Windows shortcuts
*.lnk

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
# End of https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,dart,flutter
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap android:gravity="fill" android:src="@drawable/background"/>
</item>
</layer-list>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions android/app/src/main/res/drawable-night/launch_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap android:gravity="fill" android:src="@drawable/background"/>
</item>
</layer-list>
4 changes: 4 additions & 0 deletions android/app/src/main/res/values-night/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Expand Down
Binary file added assets/image/bank/bank_investment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/bank/bank_kakao.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/bank/bank_shinhan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/bank/bank_toss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/benefit/benefit_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/benefit/benefit_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/benefit/benefit_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/benefit/benefit_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/benefit/benefit_05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/benefit/benefit_06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/credit_card/credit_cards.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/icon/map_point.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/icon/notification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/icon/plus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/icon/setting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/icon/stock_calendar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/icon/stock_search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/icon/stock_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/icon/toss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/illustration/bulb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/illustration/car.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/illustration/credit_score.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/notification/notification_idea.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/notification/notification_luck.png
Binary file added assets/image/notification/notification_stock.png
Binary file added assets/image/notification/notification_toss.png
Binary file added assets/image/notification/notification_walk.png
Binary file added assets/image/splash/android12.png
Binary file added assets/image/splash/splash.png
Binary file added assets/image/stock/interest_stock_01.png
Binary file added assets/image/stock/interest_stock_02.png
Binary file added assets/image/stock/interest_stock_03.png
Binary file added assets/image/stock/interest_stock_04.png
Binary file added assets/image/stock/interest_stock_05.png
Binary file added assets/image/stock/interest_stock_06.png
Binary file added assets/image/stock/interest_stock_07.png
Binary file added assets/image/stock/interest_stock_08.png
Binary file added assets/image/stock/interest_stock_09.png
Binary file added assets/image/stock/interest_stock_10.png
Binary file added assets/image/stock/interest_stock_11.png
Binary file added assets/image/stock/stock_01.png
Binary file added assets/image/stock/stock_02.png
Binary file added assets/image/stock/stock_03.png
Binary file added assets/image/stock/stock_04.png
Binary file added assets/image/stock/stock_05.png
Binary file added assets/image/stock/stock_06.png
Binary file added assets/image/stock/stock_heart_off.png
Binary file added assets/image/stock/stock_heart_on.png
Binary file added assets/image/stock/stock_korea.png
Binary file added assets/image/stock/stock_usa.png
9 changes: 5 additions & 4 deletions flutter_native_splash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ flutter_native_splash:
# of your splash screen to a solid color. Use background_image to set the background of your
# splash screen to a png image. This is useful for gradients. The image will be stretch to the
# size of the app. Only one parameter can be used, color and background_image cannot both be set.
color: "#ffffff"
# 다크모드 사용 메인 컬러
color: "#0a0a0e"
#background_image: "assets/background.png"

# Optional parameters are listed below. To enable a parameter, uncomment the line by removing
# the leading # character.

# The image parameter allows you to specify an image used in the splash screen. It must be a
# png file and should be sized for 4x pixel density.
#image: assets/splash.png
image: assets/image/splash/splash.png

# The branding property allows you to specify an image used as branding in the splash screen.
# It must be a png file. It is supported for Android, iOS and the Web. For Android 12,
Expand Down Expand Up @@ -50,10 +51,10 @@ flutter_native_splash:
# 640 pixels in diameter.
# App icon without an icon background: This should be 1152×1152 pixels, and fit within a circle
# 768 pixels in diameter.
#image: assets/android12splash.png
image: assets/image/splash/android12.png

# Splash screen background color.
#color: "#42a5f5"
color: "#0a0a0e"

# App icon background color.
#icon_background_color: "#111111"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
"images" : [
{
"filename" : "background.png",
"idiom" : "universal",
"scale" : "1x"
"idiom" : "universal"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "darkbackground.png",
"idiom" : "universal"
}
],
"info" : {
Expand Down
5 changes: 4 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ import 'package:flutter/material.dart';

import 'app.dart';
import 'common/data/preference/app_preferences.dart';
import 'package:flutter_native_splash/flutter_native_splash.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();
final bindings = WidgetsFlutterBinding.ensureInitialized();
// 기존에 네이티브 스플래시 화면 보전, 두번 로딩되는 현상 때문에, 나중에 지워야됨
FlutterNativeSplash.preserve(widgetsBinding: bindings);
await EasyLocalization.ensureInitialized();
await AppPreferences.init();

Expand Down
36 changes: 29 additions & 7 deletions lib/screen/main/s_main.dart
Original file line number Diff line number Diff line change
@@ -1,30 +1,49 @@
import 'package:fast_app_base/screen/main/tab/tab_item.dart';
import 'package:fast_app_base/screen/main/tab/tab_navigator.dart';
import 'package:flutter/material.dart';
import 'package:flutter_native_splash/flutter_native_splash.dart';

import '../../common/common.dart';
import 'w_menu_drawer.dart';

import 'package:after_layout/after_layout.dart';

class MainScreen extends StatefulWidget {
const MainScreen({super.key});

@override
State<MainScreen> createState() => MainScreenState();
}

class MainScreenState extends State<MainScreen> with SingleTickerProviderStateMixin {
class MainScreenState extends State<MainScreen>
with SingleTickerProviderStateMixin, AfterLayoutMixin {
TabItem _currentTab = TabItem.home;
final tabs = [TabItem.home, TabItem.favorite];
final tabs = [
TabItem.home,
TabItem.benefit,
TabItem.ttossplay,
TabItem.stock,
TabItem.all,
];
final List<GlobalKey<NavigatorState>> navigatorKeys = [];

int get _currentIndex => tabs.indexOf(_currentTab);

GlobalKey<NavigatorState> get _currentTabNavigationKey => navigatorKeys[_currentIndex];
GlobalKey<NavigatorState> get _currentTabNavigationKey =>
navigatorKeys[_currentIndex];

bool get extendBody => true;

static double get bottomNavigationBarBorderRadius => 30.0;

@override
FutureOr<void> afterFirstLayout(BuildContext context) async {
// 추후 로그인, 로딩 이후 실행
// await login();
// await loading();
FlutterNativeSplash.remove();
}

@override
void initState() {
super.initState();
Expand All @@ -40,7 +59,8 @@ class MainScreenState extends State<MainScreen> with SingleTickerProviderStateMi
drawer: const MenuDrawer(),
body: Container(
color: context.appColors.seedColor.getMaterialColorValues[200],
padding: EdgeInsets.only(bottom: extendBody ? 60 - bottomNavigationBarBorderRadius : 0),
padding: EdgeInsets.only(
bottom: extendBody ? 60 - bottomNavigationBarBorderRadius : 0),
child: SafeArea(
bottom: !extendBody,
child: pages,
Expand Down Expand Up @@ -119,13 +139,15 @@ class MainScreenState extends State<MainScreen> with SingleTickerProviderStateMi
});
}

BottomNavigationBarItem bottomItem(
bool activate, IconData iconData, IconData inActivateIconData, String label) {
BottomNavigationBarItem bottomItem(bool activate, IconData iconData,
IconData inActivateIconData, String label) {
return BottomNavigationBarItem(
icon: Icon(
key: ValueKey(label),
activate ? iconData : inActivateIconData,
color: activate ? context.appColors.iconButton : context.appColors.iconButtonInactivate,
color: activate
? context.appColors.iconButton
: context.appColors.iconButtonInactivate,
),
label: label);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import 'package:flutter/material.dart';
import '../../../../common/widget/round_button_theme.dart';
import '../../../../common/widget/w_round_button.dart';

class FavoriteFragment extends StatelessWidget {
class AllFragment extends StatelessWidget {
final bool isShowBackButton;

const FavoriteFragment({
const AllFragment({
Key? key,
this.isShowBackButton = true,
}) : super(key: key);
Expand All @@ -31,7 +31,8 @@ class FavoriteFragment extends StatelessWidget {
const Row(),
RoundButton(
text: '즐겨찾기 화면 띄우기',
onTap: () => Nav.push(const FavoriteFragment(isShowBackButton: true),
onTap: () => Nav.push(
const AllFragment(isShowBackButton: true),
context: context),
theme: RoundButtonTheme.blue,
),
Expand Down
Loading