ajustes em diversos pontos do app para receber o username, e ajustar para exibir apenas as telas que realmente será utilizado no app.
This commit is contained in:
@@ -20,7 +20,8 @@ import '../../widgets/subtitle_appbar_citizen.dart';
|
||||
import '../../widgets/switch_with_subtitle.dart';
|
||||
class RegisterIndividualScreen extends StatefulWidget {
|
||||
List listData;
|
||||
RegisterIndividualScreen({required this.listData});
|
||||
String username;
|
||||
RegisterIndividualScreen({required this.listData, required this.username});
|
||||
|
||||
@override
|
||||
State<RegisterIndividualScreen> createState() => _RegisterIndividualScreenState();
|
||||
@@ -601,16 +602,16 @@ class _RegisterIndividualScreenState extends State<RegisterIndividualScreen> {
|
||||
double width = MediaQuery.of(context).size.width;
|
||||
|
||||
return WillPopScope(
|
||||
onWillPop: ()async=> await OnBackButton().onBackButton(context),
|
||||
onWillPop: ()async=> await OnBackButton().onBackButton(context, widget.username),
|
||||
child: Scaffold(
|
||||
appBar: AppBarDefault().appbar(context, 'RKM AB - Cadastro Individual'),
|
||||
appBar: AppBarDefault().appbar(context, 'RKM AB - Cadastro Individual',widget.username),
|
||||
body: Container(
|
||||
height: double.infinity,
|
||||
width: double.infinity,
|
||||
decoration: ConstVariable().backgroundGradient,
|
||||
child: ListView(
|
||||
children: [
|
||||
SubtitleAppbarCitizen(title: 2,edit: showTab,listData: widget.listData),
|
||||
SubtitleAppbarCitizen(title: 2,edit: showTab,listData: widget.listData,username: widget.username),
|
||||
showCheckError?Card(
|
||||
margin: EdgeInsets.all(10),
|
||||
child: Container(
|
||||
|
||||
Reference in New Issue
Block a user