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:
@@ -25,7 +25,8 @@ import '../../widgets/title_containers.dart';
|
||||
|
||||
class ServiceHomeScreen extends StatefulWidget {
|
||||
String name;
|
||||
ServiceHomeScreen({required this.name});
|
||||
String username;
|
||||
ServiceHomeScreen({required this.name,required this.username});
|
||||
|
||||
@override
|
||||
State<ServiceHomeScreen> createState() => _ServiceHomeScreenState();
|
||||
@@ -314,9 +315,9 @@ class _ServiceHomeScreenState extends State<ServiceHomeScreen> {
|
||||
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 - Atendimento Domiciliar'),
|
||||
appBar: AppBarDefault().appbar(context, 'RKM AB - Atendimento Domiciliar',widget.username),
|
||||
body: Container(
|
||||
height: double.infinity,
|
||||
width: double.infinity,
|
||||
|
||||
Reference in New Issue
Block a user