Compare commits
No commits in common. "ff135dd47bcb9063c5fc47bd3198d96dd860fe8f" and "c4c04793412d2136db33693f6fb43c8ad9177317" have entirely different histories.
ff135dd47b
...
c4c0479341
|
@ -12,7 +12,6 @@ import 'package:cims_apps/features/auth/registration/viewmodel/submission_data_v
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
import 'dart:math' as math;
|
|
||||||
|
|
||||||
class DisplayPictureScreen extends StatefulWidget {
|
class DisplayPictureScreen extends StatefulWidget {
|
||||||
final String imagePath, content;
|
final String imagePath, content;
|
||||||
|
@ -107,14 +106,7 @@ class _DisplayPictureScreenState extends State<DisplayPictureScreen> {
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: SizeConfig.width,
|
width: SizeConfig.width,
|
||||||
height: SizeConfig.height * .4,
|
height: SizeConfig.height * .4,
|
||||||
child: Transform(
|
child: Image.file(File(widget.imagePath))),
|
||||||
alignment: Alignment.center,
|
|
||||||
transform: widget.content == 'selfie'
|
|
||||||
? Matrix4.rotationY(math.pi)
|
|
||||||
: Matrix4.rotationY(0),
|
|
||||||
child: Image.file(
|
|
||||||
File(widget.imagePath),
|
|
||||||
))),
|
|
||||||
const Padding(
|
const Padding(
|
||||||
padding: EdgeInsets.symmetric(vertical: 16.0),
|
padding: EdgeInsets.symmetric(vertical: 16.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|
|
@ -6,7 +6,7 @@ import 'package:cims_apps/application/theme/color_palette.dart';
|
||||||
import 'package:cims_apps/core/route/route.dart';
|
import 'package:cims_apps/core/route/route.dart';
|
||||||
import 'package:cims_apps/core/utils/size_config.dart';
|
import 'package:cims_apps/core/utils/size_config.dart';
|
||||||
import 'package:cims_apps/features/auth/registration/view/submission_data/submission_parent.dart';
|
import 'package:cims_apps/features/auth/registration/view/submission_data/submission_parent.dart';
|
||||||
import 'package:cims_apps/features/bottom_navigation_view.dart';
|
import 'package:cims_apps/features/dashboard/dashboard_public/view/dashboard_public_view.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class InitialRegistrationStep extends StatelessWidget {
|
class InitialRegistrationStep extends StatelessWidget {
|
||||||
|
@ -203,7 +203,7 @@ class InitialRegistrationStep extends StatelessWidget {
|
||||||
isOutlined: true,
|
isOutlined: true,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
routePush(context,
|
routePush(context,
|
||||||
page: const BottomNavigationView(),
|
page: const DashboardPublicView(),
|
||||||
routeType: RouteType.pushReplace);
|
routeType: RouteType.pushReplace);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
|
@ -13,7 +13,6 @@ import 'package:cims_apps/features/auth/registration/view/submission_data/submis
|
||||||
import 'package:cims_apps/features/auth/registration/viewmodel/submission_data_viewmodel.dart';
|
import 'package:cims_apps/features/auth/registration/viewmodel/submission_data_viewmodel.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'dart:math' as math;
|
|
||||||
|
|
||||||
class SubmitDataIdCard extends StatelessWidget {
|
class SubmitDataIdCard extends StatelessWidget {
|
||||||
const SubmitDataIdCard({Key? key}) : super(key: key);
|
const SubmitDataIdCard({Key? key}) : super(key: key);
|
||||||
|
@ -109,21 +108,14 @@ class SubmitDataIdCard extends StatelessWidget {
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: SizeConfig.height * .18,
|
height: SizeConfig.height * .18,
|
||||||
width: SizeConfig.width * .45,
|
width: SizeConfig.width * .45,
|
||||||
child: Transform(
|
child: ClipRRect(
|
||||||
alignment: Alignment.center,
|
borderRadius: BorderRadius.circular(8),
|
||||||
transform: e.key == 'selfie'
|
child: Image.file(
|
||||||
? Matrix4.rotationY(math.pi)
|
File(e.image),
|
||||||
: Matrix4.rotationY(0),
|
fit: BoxFit.fill,
|
||||||
child: ClipRRect(
|
errorBuilder: (context, error, stackTrace) {
|
||||||
borderRadius: BorderRadius.circular(8),
|
return const Icon(Icons.image_not_supported_outlined);
|
||||||
child: Image.file(
|
},
|
||||||
File(e.image),
|
|
||||||
fit: BoxFit.fill,
|
|
||||||
errorBuilder: (context, error, stackTrace) {
|
|
||||||
return const Icon(
|
|
||||||
Icons.image_not_supported_outlined);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -52,8 +52,8 @@ class SubmissionDataViewModel extends ChangeNotifier {
|
||||||
];
|
];
|
||||||
|
|
||||||
List<ItemSelectForm> listImg = [
|
List<ItemSelectForm> listImg = [
|
||||||
ItemSelectForm('ktp', 'ID Card', image: ''),
|
ItemSelectForm('', 'ID Card', image: ''),
|
||||||
ItemSelectForm('selfie', 'Selfie with ID Card', image: ''),
|
ItemSelectForm('', 'Selfie with ID Card', image: ''),
|
||||||
];
|
];
|
||||||
|
|
||||||
Future<List<CameraDescription>> initCamera() async {
|
Future<List<CameraDescription>> initCamera() async {
|
||||||
|
|
|
@ -105,7 +105,6 @@ class DashboardPublicView extends StatelessWidget {
|
||||||
provider.loginGoogle(context);
|
provider.loginGoogle(context);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
SizedBox(height: SizeConfig.height * .15),
|
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
|
|
|
@ -681,18 +681,18 @@ packages:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: syncfusion_flutter_core
|
name: syncfusion_flutter_core
|
||||||
sha256: "9f98e2726af42967497eaef68f3373261700bbfcd33bd97da4ec85cb56fcdaf7"
|
sha256: "4eed0d3ae50c16b5e8e4957f3c1917e9bd0315a08dfb49a104ca8fc10244bef3"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "24.2.7"
|
version: "24.2.6"
|
||||||
syncfusion_flutter_signaturepad:
|
syncfusion_flutter_signaturepad:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: syncfusion_flutter_signaturepad
|
name: syncfusion_flutter_signaturepad
|
||||||
sha256: d51d5e346c70b938a8e1f2318a073213172aea7b99e33073c379657b1066c001
|
sha256: da55bd7d796f2c9b4707f3e063e443f67c355c6098002e446bbf43672952916e
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "24.2.7"
|
version: "24.2.6"
|
||||||
synchronized:
|
synchronized:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user