Commit 5b3987cb by Ramesh Babu Puvvadi

UI Changes

parent 75599bfa
...@@ -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"
......
...@@ -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(0xFF453348), Color(0xFF503b53),
Color(0xFF453348), Color(0xFF503b53),
//Color(0xFF7b32fe) //Color(0xFF7b32fe)
], ],
begin: Alignment.bottomLeft, begin: Alignment.bottomLeft,
......
...@@ -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.35, height: MediaQuery.of(context).size.height * 0.30,
child: PageView( child: PageView(
controller: _pageController, controller: _pageController,
children: pages = [ children: pages = [
......
...@@ -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,
......
...@@ -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: 48, // Adjust the width as needed width: 42, // Adjust the width as needed
height: 48, // Adjust the height as needed height: 42, // Adjust the height as needed
), ),
), ),
const Expanded( const Expanded(
......
...@@ -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"
}
} */
} }
// final userResponse = userResponseFromJson(jsonString);
import 'dart:convert'; import 'dart:convert';
UserResponse userResponseFromJson(String str) => UserResponse userResponseFromJson(String str) =>
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment