accura_sdk 0.0.2 accura_sdk: ^0.0.2 copied to clipboard
Accura Sdk.
import 'package:flutter/material.dart';
import 'package:accura_sdk_example/FaceMatch.dart';
import 'package:accura_sdk_example/ocrScreen.dart';
void main() {
runApp(MaterialApp(
home: HomePage(),
debugShowCheckedModeBanner: false,
));
}
class HomePage extends StatefulWidget {
const HomePage({Key? key}) : super(key: key);
@override
State<HomePage> createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("Accura KYC 3.0.1"),
backgroundColor: Colors.red[800],
),
body: Container(
decoration: const BoxDecoration(
image: DecorationImage(
image: AssetImage("assets/images/bg_home.png"),
fit: BoxFit.cover
)
),
child:SingleChildScrollView(
child: Center(
child: Column(
children: [
SizedBox(height: 30,),
GestureDetector(
onTap: (){
Navigator.push(context, MaterialPageRoute(builder: (context)=>MyApp()));
},
child: Container(
height: 300,
width: MediaQuery.of(context).size.width-50,
decoration: const BoxDecoration(
image: DecorationImage(
image: AssetImage("assets/images/OCR.jpg"),
// fit: BoxFit.cover,
),
),
),
),
GestureDetector(
child: Container(
height: 300,
width: MediaQuery.of(context).size.width-50,
decoration: const BoxDecoration(
image: DecorationImage(
image: AssetImage("assets/images/Facematch.jpg"),
// fit: BoxFit.cover,
),
),
),
onTap: (){
Navigator.push(context, MaterialPageRoute(builder: (context)=>FaceMatch()));
},
)
],
),
)
)
),
);
}
}