Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
Vasthram
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ramesh Babu Puvvadi
Vasthram
Commits
5b3987cb
Commit
5b3987cb
authored
Nov 14, 2023
by
Ramesh Babu Puvvadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI Changes
parent
75599bfa
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
41 deletions
+18
-41
AndroidManifest.xml
android/app/src/main/AndroidManifest.xml
+3
-0
Constants.dart
lib/Constants.dart
+3
-3
Home.dart
lib/Home.dart
+1
-2
RemoteData.dart
lib/RemoteData.dart
+4
-3
SignUp.dart
lib/SignUp.dart
+2
-2
SplashScreen.dart
lib/SplashScreen.dart
+1
-26
UserResponse.dart
lib/UserResponse.dart
+0
-2
pubspec.yaml
pubspec.yaml
+4
-3
No files found.
android/app/src/main/AndroidManifest.xml
View file @
5b3987cb
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
android:label=
"vasthram"
android:label=
"vasthram"
android:name=
"${applicationName}"
android:name=
"${applicationName}"
android:icon=
"@mipmap/appicon"
>
android:icon=
"@mipmap/appicon"
>
<activity
<activity
android:name=
".MainActivity"
android:name=
".MainActivity"
android:exported=
"true"
android:exported=
"true"
...
@@ -13,10 +14,12 @@
...
@@ -13,10 +14,12 @@
android:configChanges=
"orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:configChanges=
"orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated=
"true"
android:hardwareAccelerated=
"true"
android:windowSoftInputMode=
"adjustResize"
>
android:windowSoftInputMode=
"adjustResize"
>
<!-- Specifies an Android theme to apply to this Activity as soon as
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
to determine the Window background behind the Flutter UI. -->
<meta-data
<meta-data
android:name=
"io.flutter.embedding.android.NormalTheme"
android:name=
"io.flutter.embedding.android.NormalTheme"
android:resource=
"@style/NormalTheme"
android:resource=
"@style/NormalTheme"
...
...
lib/Constants.dart
View file @
5b3987cb
...
@@ -154,9 +154,9 @@ class Constants {
...
@@ -154,9 +154,9 @@ class Constants {
static
LinearGradient
getReturn
()
{
static
LinearGradient
getReturn
()
{
const
LinearGradient
gradient
=
LinearGradient
(
const
LinearGradient
gradient
=
LinearGradient
(
colors:
[
colors:
[
// Color(0xFF8c4756),
// Color(0xFF8c4756),
Color
(
0xFF
453348
),
Color
(
0xFF
503b53
),
Color
(
0xFF
453348
),
Color
(
0xFF
503b53
),
//Color(0xFF7b32fe)
//Color(0xFF7b32fe)
],
],
begin:
Alignment
.
bottomLeft
,
begin:
Alignment
.
bottomLeft
,
...
...
lib/Home.dart
View file @
5b3987cb
...
@@ -7,7 +7,6 @@ import 'package:vasthram/Constants.dart';
...
@@ -7,7 +7,6 @@ import 'package:vasthram/Constants.dart';
import
'package:vasthram/RemoteData.dart'
;
import
'package:vasthram/RemoteData.dart'
;
import
'package:vasthram/SignUp.dart'
;
import
'package:vasthram/SignUp.dart'
;
@immutable
class
Home
extends
StatefulWidget
{
class
Home
extends
StatefulWidget
{
const
Home
({
super
.
key
});
const
Home
({
super
.
key
});
@override
@override
...
@@ -527,7 +526,7 @@ class _Home extends State<Home> {
...
@@ -527,7 +526,7 @@ class _Home extends State<Home> {
],
],
),
),
SizedBox
(
SizedBox
(
height:
MediaQuery
.
of
(
context
).
size
.
height
*
0.3
5
,
height:
MediaQuery
.
of
(
context
).
size
.
height
*
0.3
0
,
child:
PageView
(
child:
PageView
(
controller:
_pageController
,
controller:
_pageController
,
children:
pages
=
[
children:
pages
=
[
...
...
lib/RemoteData.dart
View file @
5b3987cb
...
@@ -6,10 +6,11 @@ import 'package:http/http.dart' as http;
...
@@ -6,10 +6,11 @@ import 'package:http/http.dart' as http;
class
RemoteData
{
class
RemoteData
{
final
String
loginUrl
=
'http://vaman.plutokm.com/login'
;
final
String
loginUrl
=
'http://vaman.plutokm.com/login'
;
final
String
type
=
"Content-Type"
;
final
String
type
=
"Content-Type"
;
final
String
appjson
=
"application/json"
;
final
String
appjson
=
"application/json"
;
Future
<
String
>
getLoginRequest
(
String
loginid
,
String
pass
,
String
token
)
async
{
Future
<
String
>
getLoginRequest
(
String
loginid
,
String
pass
,
String
token
)
async
{
Map
<
String
,
dynamic
>
body
=
{
Map
<
String
,
dynamic
>
body
=
{
'login_id'
:
loginid
,
'login_id'
:
loginid
,
'password'
:
pass
,
'password'
:
pass
,
...
...
lib/SignUp.dart
View file @
5b3987cb
...
@@ -224,8 +224,8 @@ class _SignUpState extends State<SignUp> {
...
@@ -224,8 +224,8 @@ class _SignUpState extends State<SignUp> {
SizedBox
(
SizedBox
(
child:
Image
.
asset
(
child:
Image
.
asset
(
"assets/images/signin.png"
,
"assets/images/signin.png"
,
width:
4
8
,
// Adjust the width as needed
width:
4
2
,
// Adjust the width as needed
height:
4
8
,
// Adjust the height as needed
height:
4
2
,
// Adjust the height as needed
),
),
),
),
const
Expanded
(
const
Expanded
(
...
...
lib/SplashScreen.dart
View file @
5b3987cb
...
@@ -41,8 +41,7 @@ class SplashScreenState extends State<SplashScreen> {
...
@@ -41,8 +41,7 @@ class SplashScreenState extends State<SplashScreen> {
Navigator
.
pushReplacement
(
Navigator
.
pushReplacement
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
const
Home
()));
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
const
Home
()));
}
else
{
}
else
{
if
(
kDebugMode
)
{
if
(
kDebugMode
)
{
//print('else condition :$isLoggedIn');
}
}
Navigator
.
pushAndRemoveUntil
(
Navigator
.
pushAndRemoveUntil
(
context
,
context
,
...
@@ -55,20 +54,11 @@ class SplashScreenState extends State<SplashScreen> {
...
@@ -55,20 +54,11 @@ class SplashScreenState extends State<SplashScreen> {
@override
@override
void
initState
()
{
void
initState
()
{
super
.
initState
();
super
.
initState
();
//Constants('header', 'intit').showAlertDialog();
timeToShowSplashScreenOnScreen
();
timeToShowSplashScreenOnScreen
();
//getDeviceId();
//Constants.showAlertDialog1(context);
}
}
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
/* return Scaffold(
appBar: AppBar(
title: Text('Splash Screen'),
),
); */
return
Scaffold
(
return
Scaffold
(
body:
Container
(
body:
Container
(
decoration:
const
BoxDecoration
(
decoration:
const
BoxDecoration
(
...
@@ -81,19 +71,4 @@ class SplashScreenState extends State<SplashScreen> {
...
@@ -81,19 +71,4 @@ class SplashScreenState extends State<SplashScreen> {
),
),
);
);
}
}
/*Future<void> getDeviceId() async {
String uniqueDeviceId = (await PlatformDeviceId.getDeviceId)!;
print(uniqueDeviceId);
if (Platform.isAndroid) {
final info = await DeviceInfoPlugin().iosInfo;
print(info.model);
//print(info.systemVersion);
}
if (Platform.isIOS) {
final info = await DeviceInfoPlugin().iosInfo;
print(info.utsname.machine); // "iPhone15,2"
print(info.utsname.version); // "iPhone 14 Pro"
}
} */
}
}
lib/UserResponse.dart
View file @
5b3987cb
// final userResponse = userResponseFromJson(jsonString);
import
'dart:convert'
;
import
'dart:convert'
;
UserResponse
userResponseFromJson
(
String
str
)
=>
UserResponse
userResponseFromJson
(
String
str
)
=>
...
...
pubspec.yaml
View file @
5b3987cb
...
@@ -23,10 +23,11 @@ environment:
...
@@ -23,10 +23,11 @@ environment:
# Dependencies specify other packages that your package needs in order to work.
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# To automatically upgrade your package dependencies to the latest versions
# consider running
`flutter pub upgrade --major-versions`
. Alternatively,
# consider running
flutter pub upgrade --major-versions
. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
# versions available, run flutter pub outdated.
dependencies
:
dependencies
:
image_picker
:
image_picker
:
flutter
:
flutter
:
...
@@ -70,7 +71,7 @@ flutter:
...
@@ -70,7 +71,7 @@ flutter:
-
assets/images/password.png
-
assets/images/password.png
-
assets/images/signout.png
-
assets/images/signout.png
-
assets/images/captureimage.png
-
assets/images/captureimage.png
# To add assets to your application, add an assets section, like this:
# To add assets to your application, add an assets section, like this:
# assets:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_burr.jpeg
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment