181186 - Criar PDV Android para rodar em maquinas P.O.S.
This commit is contained in:
commit
c9983cbad5
204 files changed
+11453
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'app_services.dart';
|
||||
import 'router/app_router.dart';
|
||||
import 'theme/app_theme.dart';
|
||||
|
||||
class PdvApp extends StatelessWidget {
|
||||
const PdvApp({this.services, super.key});
|
||||
|
||||
static final GlobalKey<NavigatorState> navigatorKey =
|
||||
GlobalKey<NavigatorState>();
|
||||
|
||||
final AppServices? services;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final appServices = services ?? AppServices.defaults;
|
||||
return MaterialApp(
|
||||
title: 'PDV',
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: AppTheme.light,
|
||||
navigatorKey: navigatorKey,
|
||||
initialRoute: AppRoutes.login,
|
||||
onGenerateRoute: AppRouter(services: appServices).onGenerateRoute,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user