import 'package:flutter/material.dart'; // import 'package:qr_code_scanner/qr_code_scanner.dart'; class PersonelWidget extends StatelessWidget { const PersonelWidget({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return Card( elevation: 5, child: Container( constraints: const BoxConstraints(maxWidth: double.infinity, maxHeight: double.infinity), width: 350, // height: height ?? double.infinity, // height: 450, // margin: const EdgeInsets.all(2.0), // padding: const EdgeInsets.all(5.0), clipBehavior: Clip.hardEdge, decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.circular(10.0), border: Border.all( color: Colors.grey.shade300, width: 1, style: BorderStyle.solid, ), ), child: Column( mainAxisSize: MainAxisSize.min, children: [ SizedBox( height: 250, child: InkWell( onTap: () async { // await launchUrlString( // "https://fikoyt.com:444/fikoyt-sim?fekid=62b7a765498913ddc2b0c81e&fekturu=FIKOOPGLv1", // mode: LaunchMode.externalApplication, // ); }, child: Container( width: 250, height: 250, margin: const EdgeInsets.all(5), clipBehavior: Clip.hardEdge, decoration: const BoxDecoration( color: Colors.transparent, borderRadius: BorderRadius.all( Radius.circular(15), ), ), child: Image.asset("assets/hmi/cnc.png") // QRView( // key: cncEkraniLogic.qrStokNo, // onQRViewCreated: cncEkraniLogic.onQRViewStokNoCreated, // overlay: QrScannerOverlayShape( // borderColor: Colors.red, // borderRadius: 10, // borderLength: 30, // borderWidth: 10, // cutOutSize: 150), // ), ), ), ), const Text( "Proje Kodu Şimdilik El İle Girilecek", maxLines: 1, textAlign: TextAlign.center, style: TextStyle(fontWeight: FontWeight.bold, fontSize: 18, color: Colors.black), ), Padding( padding: const EdgeInsets.all(5), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ const Text("Tamamlanma Yüzdesi :", style: TextStyle(fontSize: 12, color: Colors.blueAccent)), const LinearProgressIndicator( value: 1, color: Colors.blue, semanticsLabel: 'Linear progress indicator', ), Row( children: [ Expanded( child: Column( children: const [ Text("Bağlanma Zamanı", style: TextStyle(fontSize: 12, color: Colors.blueAccent)), Text("Bilinmiyor", style: TextStyle( // fontSize: 18, fontWeight: FontWeight.bold, color: Colors.orange)), ], ), ), Expanded( child: Column( children: const [ Text("Geçen Süre:", style: TextStyle(fontSize: 12, color: Colors.blueAccent)), Text("Bilinmiyor", style: TextStyle( // fontSize: 18, fontWeight: FontWeight.bold, color: Colors.red)), ], ), ), Expanded( child: Column( children: const [ Text("Çalışma Süresi:", style: TextStyle(fontSize: 12, color: Colors.blueAccent)), Text("Bilinmiyor", style: TextStyle( // fontSize: 18, fontWeight: FontWeight.bold, color: Colors.green)), ], ), ), ], ), ], ), ), ], ), ), ); } }