criada as telas clear_data_screen.dart e sinc_data_screen.dart
This commit is contained in:
78
lib/screens/clear_data_screen.dart
Normal file
78
lib/screens/clear_data_screen.dart
Normal file
@@ -0,0 +1,78 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rkm/utils/const_variable.dart';
|
||||
import 'package:rkm/widgets/button_default.dart';
|
||||
|
||||
import '../utils/color_palette.dart';
|
||||
import '../widgets/text_default.dart';
|
||||
|
||||
class ClearDataScreen extends StatefulWidget {
|
||||
const ClearDataScreen({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<ClearDataScreen> createState() => _ClearDataScreenState();
|
||||
}
|
||||
|
||||
class _ClearDataScreenState extends State<ClearDataScreen> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
double width = MediaQuery.of(context).size.width;
|
||||
return Scaffold(
|
||||
bottomSheet: Container(
|
||||
color: ColorPalette.appBar,
|
||||
child: Row(
|
||||
children: [
|
||||
Spacer(),
|
||||
ButtonDefault(
|
||||
title: 'Voltar',
|
||||
width: width*0.2,
|
||||
textColor: ColorPalette.white,
|
||||
background: ColorPalette.appBar,
|
||||
borderColor: ColorPalette.appBar,
|
||||
onPressed: ()=>Navigator.pushNamedAndRemoveUntil(context, '/home', (Route<dynamic> route) => false),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
body: Container(
|
||||
padding: EdgeInsets.only(top: 100),
|
||||
decoration: ConstVariable().backgroundGradient,
|
||||
width: double.infinity,
|
||||
height: double.infinity,
|
||||
child: Column(
|
||||
children: [
|
||||
Image.asset('assets/images/logo.PNG',width: width*0.5,),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 10.0),
|
||||
child: TextDefault(
|
||||
text: 'HOMOLOGAÇÃO',
|
||||
color: ColorPalette.red,
|
||||
fontSize: 30,
|
||||
fontWeigth: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 5.0,horizontal: 5),
|
||||
child: TextDefault(
|
||||
text: 'Todos os registros (dados Importados, Cadastros e Atendimentos) do aplicativo serão excluídos.\n\n'
|
||||
'Para utilizar novamente o aplicativo deverá ser realizada uma nova Carga inicial.',
|
||||
maxLines: 5,
|
||||
textAlign: TextAlign.center,
|
||||
color: ColorPalette.black54,
|
||||
fontSize: 20,
|
||||
fontWeigth: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
ButtonDefault(
|
||||
title: 'Limpar Dados',
|
||||
width: width*0.9,
|
||||
textColor: ColorPalette.white,
|
||||
background: ColorPalette.appBar,
|
||||
borderColor: ColorPalette.appBar,
|
||||
onPressed: ()=>Navigator.pushReplacementNamed(context, '/home'),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user