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( children: [ SizedBox( height: 175, child: InkWell( onTap: () async {}, child: Tada( preferences: const AnimationPreferences( autoPlay: AnimationPlayStates.Loop, duration: Duration(seconds: 2), offset: Duration(seconds: 8), ), child: Pulse( preferences: const AnimationPreferences( autoPlay: AnimationPlayStates.Loop, duration: Duration(seconds: 2), offset: Duration(seconds: 2), ), child: Image.asset( "assets/nfc.png", width: 128, height: 128, ), ), ), ), ), const Text( "Lütfen Kartınızı Okuyucuya Yerleştirin \n Aksi Durumda Makineyi Kullanmanıza İzin Verilmeyecektir", textAlign: TextAlign.center, style: TextStyle(fontWeight: FontWeight.bold, fontSize: 18), ), ], )), ); } }