upodate for login system and app name, icon
@ -26,7 +26,12 @@ apply plugin: 'kotlin-android'
|
|||||||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion flutter.compileSdkVersion
|
|
||||||
|
compileSdkVersion 33
|
||||||
|
|
||||||
|
lintOptions {
|
||||||
|
checkReleaseBuilds false
|
||||||
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
@ -43,7 +48,7 @@ android {
|
|||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||||
applicationId "com.example.rogapp"
|
applicationId "com.dvox.gifunavi"
|
||||||
minSdkVersion 23
|
minSdkVersion 23
|
||||||
targetSdkVersion flutter.targetSdkVersion
|
targetSdkVersion flutter.targetSdkVersion
|
||||||
versionCode flutterVersionCode.toInteger()
|
versionCode flutterVersionCode.toInteger()
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
|
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
|
||||||
<uses-permission android:name="android.permission.WAKE_LOCK"/>
|
<uses-permission android:name="android.permission.WAKE_LOCK"/>
|
||||||
<application
|
<application
|
||||||
android:label="rogapp"
|
android:label="岐阜ナビ"
|
||||||
android:name="${applicationName}"
|
android:name="${applicationName}"
|
||||||
android:icon="@mipmap/ic_launcher">
|
android:icon="@mipmap/ic_launcher">
|
||||||
<activity
|
<activity
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 7.8 KiB |
|
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 721 B After Width: | Height: | Size: 9.4 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 16 KiB |
@ -1,4 +1,3 @@
|
|||||||
#Fri Jun 23 08:50:38 CEST 2017
|
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
BIN
assets/icon.png
Normal file
|
After Width: | Height: | Size: 145 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
BIN
assets/images/appicon.png
Normal file
|
After Width: | Height: | Size: 145 KiB |
|
Before Width: | Height: | Size: 105 KiB |
BIN
assets/images/login_image.jpg
Normal file
|
After Width: | Height: | Size: 82 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 973 B |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1011 B |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
@ -3,7 +3,7 @@
|
|||||||
archiveVersion = 1;
|
archiveVersion = 1;
|
||||||
classes = {
|
classes = {
|
||||||
};
|
};
|
||||||
objectVersion = 50;
|
objectVersion = 51;
|
||||||
objects = {
|
objects = {
|
||||||
|
|
||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
@ -68,7 +68,6 @@
|
|||||||
DD65EA52DB6CFBB8714C0EF7 /* Pods-Runner.release.xcconfig */,
|
DD65EA52DB6CFBB8714C0EF7 /* Pods-Runner.release.xcconfig */,
|
||||||
97E3BC3A3B281D91C83B77D2 /* Pods-Runner.profile.xcconfig */,
|
97E3BC3A3B281D91C83B77D2 /* Pods-Runner.profile.xcconfig */,
|
||||||
);
|
);
|
||||||
name = Pods;
|
|
||||||
path = Pods;
|
path = Pods;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
@ -374,13 +373,14 @@
|
|||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||||
|
DEVELOPMENT_TEAM = D5SL68ATB9;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
INFOPLIST_FILE = Runner/Info.plist;
|
INFOPLIST_FILE = Runner/Info.plist;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.rogapp;
|
PRODUCT_BUNDLE_IDENTIFIER = com.dvox.gifunavi;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
@ -502,13 +502,14 @@
|
|||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||||
|
DEVELOPMENT_TEAM = D5SL68ATB9;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
INFOPLIST_FILE = Runner/Info.plist;
|
INFOPLIST_FILE = Runner/Info.plist;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.rogapp;
|
PRODUCT_BUNDLE_IDENTIFIER = com.dvox.gifunavi;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||||
@ -524,13 +525,14 @@
|
|||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||||
|
DEVELOPMENT_TEAM = D5SL68ATB9;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
INFOPLIST_FILE = Runner/Info.plist;
|
INFOPLIST_FILE = Runner/Info.plist;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.rogapp;
|
PRODUCT_BUNDLE_IDENTIFIER = com.dvox.gifunavi;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 564 B After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 8.8 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 8.3 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 7.8 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 8.1 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 14 KiB |
@ -2,12 +2,12 @@
|
|||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>io.flutter.embedded_views_preview</key>
|
<key>CADisableMinimumFrameDurationOnPhone</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||||
<key>CFBundleDisplayName</key>
|
<key>CFBundleDisplayName</key>
|
||||||
<string>Rogapp</string>
|
<string>岐阜ナビ</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>$(EXECUTABLE_NAME)</string>
|
<string>$(EXECUTABLE_NAME)</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
@ -15,7 +15,7 @@
|
|||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
<string>rogapp</string>
|
<string>岐阜ナビ</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
@ -26,6 +26,18 @@
|
|||||||
<string>$(FLUTTER_BUILD_NUMBER)</string>
|
<string>$(FLUTTER_BUILD_NUMBER)</string>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
<key>NSCameraUsageDescription</key>
|
||||||
|
<string>Camera access to take photo</string>
|
||||||
|
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
|
||||||
|
<string>This app need location access</string>
|
||||||
|
<key>NSLocationAlwaysUsageDescription</key>
|
||||||
|
<string>This app needs access to location when in the background.</string>
|
||||||
|
<key>NSLocationWhenInUseUsageDescription</key>
|
||||||
|
<string>This app needs access to location when open.</string>
|
||||||
|
<key>NSMicrophoneUsageDescription</key>
|
||||||
|
<string>Post videos to profile</string>
|
||||||
|
<key>NSPhotoLibraryUsageDescription</key>
|
||||||
|
<string>Photo Library Access Warning</string>
|
||||||
<key>UILaunchStoryboardName</key>
|
<key>UILaunchStoryboardName</key>
|
||||||
<string>LaunchScreen</string>
|
<string>LaunchScreen</string>
|
||||||
<key>UIMainStoryboardFile</key>
|
<key>UIMainStoryboardFile</key>
|
||||||
@ -45,21 +57,7 @@
|
|||||||
</array>
|
</array>
|
||||||
<key>UIViewControllerBasedStatusBarAppearance</key>
|
<key>UIViewControllerBasedStatusBarAppearance</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
|
<key>io.flutter.embedded_views_preview</key>
|
||||||
<string>This app need location access</string>
|
|
||||||
<key>NSLocationWhenInUseUsageDescription</key>
|
|
||||||
<string>This all need location access</string>
|
|
||||||
<key>NSLocationWhenInUseUsageDescription</key>
|
|
||||||
<string>This app needs access to location when open.</string>
|
|
||||||
<key>NSLocationAlwaysUsageDescription</key>
|
|
||||||
<string>This app needs access to location when in the background.</string>
|
|
||||||
<key>NSPhotoLibraryUsageDescription</key>
|
|
||||||
<string>Photo Library Access Warning</string>
|
|
||||||
<key>NSCameraUsageDescription</key>
|
|
||||||
<string>Camera access to take photo</string>
|
|
||||||
<key>NSMicrophoneUsageDescription</key>
|
|
||||||
<string>Post videos to profile</string>
|
|
||||||
<key>CADisableMinimumFrameDurationOnPhone</key>
|
|
||||||
<true/>
|
<true/>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
@ -65,12 +65,12 @@ class _DestinationPageState extends State<DestinationPage> {
|
|||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
drawer: const DrawerPage(),
|
drawer: DrawerPage(),
|
||||||
bottomNavigationBar: BottomAppBar(
|
bottomNavigationBar: BottomAppBar(
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Expanded(child: IconButton(icon: const Icon(Icons.camera_enhance), onPressed: (){},),),
|
Expanded(child: Container(width: 0, height: 0,),),
|
||||||
const Expanded(child: Text('')),
|
const Expanded(child: Text('')),
|
||||||
Expanded(child: IconButton(icon: const Icon(Icons.travel_explore), onPressed: (){
|
Expanded(child: IconButton(icon: const Icon(Icons.travel_explore), onPressed: (){
|
||||||
indexController.switchPage(AppPages.INITIAL);
|
indexController.switchPage(AppPages.INITIAL);
|
||||||
|
|||||||
@ -1,11 +1,13 @@
|
|||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
|
import 'package:rogapp/pages/index/index_controller.dart';
|
||||||
import 'package:rogapp/routes/app_pages.dart';
|
import 'package:rogapp/routes/app_pages.dart';
|
||||||
|
|
||||||
class DrawerPage extends StatelessWidget {
|
class DrawerPage extends StatelessWidget {
|
||||||
const DrawerPage({ Key? key }) : super(key: key);
|
DrawerPage({ Key? key }) : super(key: key);
|
||||||
|
|
||||||
|
final IndexController indexController = Get.find<IndexController>();
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
@ -19,49 +21,86 @@ class DrawerPage extends StatelessWidget {
|
|||||||
Container(
|
Container(
|
||||||
height: 100,
|
height: 100,
|
||||||
color: Colors.amber,
|
color: Colors.amber,
|
||||||
|
child: Obx(() =>
|
||||||
|
Center(
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child:
|
||||||
|
indexController.currentUser.length == 0 ?
|
||||||
|
Flexible(child: Text("drawer_title".tr, style: TextStyle(color: Colors.black, fontSize: 20),))
|
||||||
|
:
|
||||||
|
Text(indexController.currentUser[0]['user']['email'], style: TextStyle(color: Colors.black, fontSize: 20),),
|
||||||
),
|
),
|
||||||
|
)
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Obx(() =>
|
||||||
|
indexController.currentUser.length == 0 ?
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: const Icon(Icons.login),
|
leading: const Icon(Icons.login),
|
||||||
title: Text("login".tr),
|
title: Text("login".tr),
|
||||||
onTap: (){
|
onTap: (){
|
||||||
Get.toNamed(AppPages.LANDING);
|
Get.toNamed(AppPages.LOGIN);
|
||||||
},
|
},
|
||||||
|
) :
|
||||||
|
ListTile(
|
||||||
|
leading: const Icon(Icons.login),
|
||||||
|
title: Text("logout".tr),
|
||||||
|
onTap: (){
|
||||||
|
indexController.currentUser.clear();
|
||||||
|
Get.toNamed(AppPages.TRAVEL);
|
||||||
|
},
|
||||||
|
)
|
||||||
),
|
),
|
||||||
|
indexController.currentUser.length > 0 ?
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: const Icon(Icons.password),
|
leading: const Icon(Icons.password),
|
||||||
title: Text("change_password".tr),
|
title: Text("change_password".tr),
|
||||||
onTap: (){},
|
onTap: (){},
|
||||||
),
|
) :
|
||||||
|
Container(width: 0, height: 0,),
|
||||||
|
indexController.currentUser.length == 0 ?
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: const Icon(Icons.person),
|
leading: const Icon(Icons.person),
|
||||||
title: Text("profile".tr),
|
title: Text("sign_up".tr),
|
||||||
onTap: (){},
|
onTap: (){
|
||||||
),
|
Get.toNamed(AppPages.REGISTER);
|
||||||
ListTile(
|
},
|
||||||
leading: const Icon(Icons.route),
|
) :
|
||||||
title: Text("recommended_route".tr),
|
Container(width: 0, height: 0,),
|
||||||
onTap: (){},
|
|
||||||
),
|
// ListTile(
|
||||||
ListTile(
|
// leading: const Icon(Icons.person),
|
||||||
leading: const Icon(Icons.favorite_rounded),
|
// title: Text("profile".tr),
|
||||||
title: Text("point_rank".tr),
|
// onTap: (){},
|
||||||
onTap: (){},
|
// ),
|
||||||
),
|
// ListTile(
|
||||||
|
// leading: const Icon(Icons.route),
|
||||||
|
// title: Text("recommended_route".tr),
|
||||||
|
// onTap: (){},
|
||||||
|
// ),
|
||||||
|
// ListTile(
|
||||||
|
// leading: const Icon(Icons.favorite_rounded),
|
||||||
|
// title: Text("point_rank".tr),
|
||||||
|
// onTap: (){},
|
||||||
|
// ),
|
||||||
|
indexController.currentUser.length > 0 ?
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: const Icon(Icons.featured_video),
|
leading: const Icon(Icons.featured_video),
|
||||||
title: Text("game_rank".tr),
|
title: Text("rog_web".tr),
|
||||||
onTap: (){},
|
onTap: (){},
|
||||||
),
|
) :
|
||||||
ListTile(
|
Container(width: 0, height: 0,),
|
||||||
leading: const Icon(Icons.router),
|
// ListTile(
|
||||||
title: Text("my_route".tr),
|
// leading: const Icon(Icons.router),
|
||||||
onTap: (){},
|
// title: Text("my_route".tr),
|
||||||
),
|
// onTap: (){},
|
||||||
ListTile(
|
// ),
|
||||||
leading: const Icon(Icons.history_sharp),
|
// ListTile(
|
||||||
title: Text("visit_history".tr),
|
// leading: const Icon(Icons.history_sharp),
|
||||||
onTap: (){},
|
// title: Text("visit_history".tr),
|
||||||
),
|
// onTap: (){},
|
||||||
|
// ),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@ -37,7 +37,7 @@ class IndexPage extends GetView<IndexController> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
//automaticallyImplyLeading: false,
|
//automaticallyImplyLeading: false,
|
||||||
title: Text("Add locations"),
|
title: Text("add_location".tr),
|
||||||
actions: [
|
actions: [
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap: (){
|
onTap: (){
|
||||||
@ -61,7 +61,7 @@ class IndexPage extends GetView<IndexController> {
|
|||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Expanded(child: IconButton(icon: const Icon(Icons.camera_enhance), onPressed: (){},),),
|
Expanded(child: Container(width: 0, height: 0,),),
|
||||||
const Expanded(child: Text('')),
|
const Expanded(child: Text('')),
|
||||||
Expanded(child: IconButton(icon: const Icon(Icons.travel_explore), onPressed: (){
|
Expanded(child: IconButton(icon: const Icon(Icons.travel_explore), onPressed: (){
|
||||||
indexController.switchPage(AppPages.TRAVEL);
|
indexController.switchPage(AppPages.TRAVEL);
|
||||||
|
|||||||
@ -28,25 +28,22 @@ class LoginPage extends StatelessWidget {
|
|||||||
body:
|
body:
|
||||||
indexController.currentUser.length == 0 ?
|
indexController.currentUser.length == 0 ?
|
||||||
Container(
|
Container(
|
||||||
height: MediaQuery.of(context).size.height,
|
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Column(
|
Column(
|
||||||
children: [
|
children: [
|
||||||
Column(
|
Column(
|
||||||
children: [
|
children: [
|
||||||
Text ("ログイン", style: TextStyle(
|
Container(
|
||||||
fontSize: 30,
|
height: MediaQuery.of(context).size.height/5,
|
||||||
fontWeight: FontWeight.bold,
|
decoration: BoxDecoration(
|
||||||
),),
|
image:DecorationImage(image: AssetImage('assets/images/login_image.jpg'))
|
||||||
SizedBox(height: 20,),
|
),
|
||||||
Text("お帰りなさい !資格情報を使用してログインします",style: TextStyle(
|
),
|
||||||
fontSize: 15,
|
SizedBox(height: 5,),
|
||||||
color: Colors.grey[700],
|
|
||||||
),),
|
|
||||||
SizedBox(height: 30,)
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
@ -55,8 +52,8 @@ class LoginPage extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
makeInput(label: "Eメール", controller: emailController),
|
makeInput(label: "email".tr, controller: emailController),
|
||||||
makeInput(label: "パスワード", controller: passwordController, obsureText: true),
|
makeInput(label: "password".tr, controller: passwordController, obsureText: true),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -86,14 +83,16 @@ class LoginPage extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
child: CircularProgressIndicator(),
|
child: CircularProgressIndicator(),
|
||||||
) :
|
) :
|
||||||
|
Column(
|
||||||
|
children: [
|
||||||
MaterialButton(
|
MaterialButton(
|
||||||
minWidth: double.infinity,
|
minWidth: double.infinity,
|
||||||
height:60,
|
height:60,
|
||||||
onPressed: (){
|
onPressed: (){
|
||||||
if(emailController.text.isEmpty || passwordController.text.isEmpty){
|
if(emailController.text.isEmpty || passwordController.text.isEmpty){
|
||||||
Get.snackbar(
|
Get.snackbar(
|
||||||
"No values",
|
"no_values".tr,
|
||||||
"Email and password required",
|
"email_and_password_required".tr,
|
||||||
icon: Icon(Icons.assistant_photo_outlined, size: 40.0, color: Colors.blue),
|
icon: Icon(Icons.assistant_photo_outlined, size: 40.0, color: Colors.blue),
|
||||||
snackPosition: SnackPosition.TOP,
|
snackPosition: SnackPosition.TOP,
|
||||||
duration: Duration(milliseconds: 800),
|
duration: Duration(milliseconds: 800),
|
||||||
@ -113,6 +112,24 @@ class LoginPage extends StatelessWidget {
|
|||||||
fontWeight: FontWeight.w600,fontSize: 16,color: Colors.white70
|
fontWeight: FontWeight.w600,fontSize: 16,color: Colors.white70
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
SizedBox(height: 10.0,),
|
||||||
|
MaterialButton(
|
||||||
|
minWidth: double.infinity,
|
||||||
|
height:60,
|
||||||
|
onPressed: (){
|
||||||
|
Get.toNamed(AppPages.REGISTER);
|
||||||
|
},
|
||||||
|
color: Colors.redAccent,
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(40)
|
||||||
|
),
|
||||||
|
child: Text("sign_up".tr,style: TextStyle(
|
||||||
|
fontWeight: FontWeight.w600,fontSize: 16,color: Colors.white70
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -123,18 +140,12 @@ class LoginPage extends StatelessWidget {
|
|||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Flexible(
|
Flexible(
|
||||||
child: Text("アカウントをお持ちではありませんか?", style: TextStyle(
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: Text("rogaining_user_need_tosign_up".tr, style: TextStyle(
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),),
|
),),
|
||||||
),
|
),
|
||||||
TextButton(
|
|
||||||
onPressed: (){
|
|
||||||
Get.toNamed(AppPages.REGISTER);
|
|
||||||
},
|
|
||||||
child: Text("サインアップ",style: TextStyle(
|
|
||||||
fontWeight: FontWeight.w600,
|
|
||||||
fontSize: 18
|
|
||||||
),),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
@ -94,8 +94,8 @@ class RegisterPage extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
if(emailController.text.isEmpty || passwordController.text.isEmpty){
|
if(emailController.text.isEmpty || passwordController.text.isEmpty){
|
||||||
Get.snackbar(
|
Get.snackbar(
|
||||||
"No values",
|
"no_values".tr,
|
||||||
"Email and password required",
|
"email_and_password_required".tr,
|
||||||
icon: Icon(Icons.assistant_photo_outlined, size: 40.0, color: Colors.blue),
|
icon: Icon(Icons.assistant_photo_outlined, size: 40.0, color: Colors.blue),
|
||||||
snackPosition: SnackPosition.TOP,
|
snackPosition: SnackPosition.TOP,
|
||||||
duration: Duration(milliseconds: 800),
|
duration: Duration(milliseconds: 800),
|
||||||
@ -111,7 +111,7 @@ class RegisterPage extends StatelessWidget {
|
|||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(40)
|
borderRadius: BorderRadius.circular(40)
|
||||||
),
|
),
|
||||||
child: Text("サインアップ",style: TextStyle(
|
child: Text("sign_up".tr,style: TextStyle(
|
||||||
fontWeight: FontWeight.w600,fontSize: 16,
|
fontWeight: FontWeight.w600,fontSize: 16,
|
||||||
|
|
||||||
),),
|
),),
|
||||||
|
|||||||