Commit 5b3987cb by Ramesh Babu Puvvadi

UI Changes

parent 75599bfa
......@@ -5,6 +5,7 @@
android:label="vasthram"
android:name="${applicationName}"
android:icon="@mipmap/appicon">
<activity
android:name=".MainActivity"
android:exported="true"
......@@ -13,10 +14,12 @@
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
......
......@@ -155,8 +155,8 @@ class Constants {
const LinearGradient gradient = LinearGradient(
colors: [
// Color(0xFF8c4756),
Color(0xFF453348),
Color(0xFF453348),
Color(0xFF503b53),
Color(0xFF503b53),
//Color(0xFF7b32fe)
],
begin: Alignment.bottomLeft,
......
......@@ -7,7 +7,6 @@ import 'package:vasthram/Constants.dart';
import 'package:vasthram/RemoteData.dart';
import 'package:vasthram/SignUp.dart';
@immutable
class Home extends StatefulWidget {
const Home({super.key});
@override
......@@ -527,7 +526,7 @@ class _Home extends State<Home> {
],
),
SizedBox(
height: MediaQuery.of(context).size.height * 0.35,
height: MediaQuery.of(context).size.height * 0.30,
child: PageView(
controller: _pageController,
children: pages = [
......
......@@ -9,7 +9,8 @@ class RemoteData {
final String type = "Content-Type";
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 = {
'login_id': loginid,
'password': pass,
......
......@@ -224,8 +224,8 @@ class _SignUpState extends State<SignUp> {
SizedBox(
child: Image.asset(
"assets/images/signin.png",
width: 48, // Adjust the width as needed
height: 48, // Adjust the height as needed
width: 42, // Adjust the width as needed
height: 42, // Adjust the height as needed
),
),
const Expanded(
......
......@@ -41,8 +41,7 @@ class SplashScreenState extends State<SplashScreen> {
Navigator.pushReplacement(
context, MaterialPageRoute(builder: (context) => const Home()));
} else {
if (kDebugMode) {
//print('else condition :$isLoggedIn');
if(kDebugMode) {
}
Navigator.pushAndRemoveUntil(
context,
......@@ -55,20 +54,11 @@ class SplashScreenState extends State<SplashScreen> {
@override
void initState() {
super.initState();
//Constants('header', 'intit').showAlertDialog();
timeToShowSplashScreenOnScreen();
//getDeviceId();
//Constants.showAlertDialog1(context);
}
@override
Widget build(BuildContext context) {
/* return Scaffold(
appBar: AppBar(
title: Text('Splash Screen'),
),
); */
return Scaffold(
body: Container(
decoration: const BoxDecoration(
......@@ -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';
UserResponse userResponseFromJson(String str) =>
......
......@@ -23,10 +23,11 @@ environment:
# Dependencies specify other packages that your package needs in order to work.
# 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
# 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:
image_picker:
flutter:
......
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