66 lines
1.9 KiB
Dart
66 lines
1.9 KiB
Dart
|
import 'package:flutter/material.dart';
|
||
|
import 'package:flutter_passvault/constant/constantfile.dart';
|
||
|
import 'package:flutter_passvault/view_pages/my_drawer.dart';
|
||
|
import 'package:flutter_passvault/view_pages/shared_data.dart';
|
||
|
import 'package:universal_html/js.dart' as js;
|
||
|
|
||
|
class Screen extends StatefulWidget {
|
||
|
const Screen({Key? key}) : super(key: key);
|
||
|
|
||
|
@override
|
||
|
// ignore: library_private_types_in_public_api
|
||
|
_ScreenState createState() => _ScreenState();
|
||
|
}
|
||
|
|
||
|
class _ScreenState extends State<Screen> {
|
||
|
Color color1 = ApiConstants.backgroundcolor;
|
||
|
|
||
|
@override
|
||
|
void initState() {
|
||
|
super.initState();
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
// return MaterialApp(
|
||
|
// debugShowCheckedModeBanner: false,
|
||
|
// title: 'Flutter with Novu Notification Center',
|
||
|
// home: Scaffold(
|
||
|
// appBar: AppBar(
|
||
|
// backgroundColor: Colors.amber,
|
||
|
// title: Text('Flutter with Novu Notification Center'),
|
||
|
// flexibleSpace: js.context.callMethod('alertMessage'),
|
||
|
// ),
|
||
|
// body: Center(
|
||
|
// child: GestureDetector(
|
||
|
// onTap: () {
|
||
|
// // js.context.callMethod('alertMessage');
|
||
|
|
||
|
// //js.context.callMethod('alertMessage');
|
||
|
// },
|
||
|
// child: Text('Welcome to your Flutter app!')),
|
||
|
// ),
|
||
|
// ),
|
||
|
// );
|
||
|
return WillPopScope(
|
||
|
onWillPop: () async {
|
||
|
return true;
|
||
|
},
|
||
|
child: Scaffold(
|
||
|
backgroundColor: Colors.white,
|
||
|
appBar: AppBar(
|
||
|
backgroundColor: color1,
|
||
|
title: const Text(
|
||
|
'Passvault',
|
||
|
style: TextStyle(color: Colors.white),
|
||
|
),
|
||
|
iconTheme: const IconThemeData(color: Colors.white),
|
||
|
flexibleSpace: js.context.callMethod('alertMessage'),
|
||
|
),
|
||
|
drawer: MyDrawer(),
|
||
|
body: const SharedCredentials(),
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|