empresas y negocios selector integrado
This commit is contained in:
@@ -52,37 +52,6 @@ void main() async {
|
||||
);
|
||||
}
|
||||
|
||||
/* class MyApp extends StatefulWidget {
|
||||
const MyApp({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<MyApp> createState() => _MyAppState();
|
||||
|
||||
static _MyAppState of(BuildContext context) =>
|
||||
context.findAncestorStateOfType<_MyAppState>()!;
|
||||
}
|
||||
|
||||
class _MyAppState extends State<MyApp> {
|
||||
Locale _locale = const Locale('es');
|
||||
ThemeMode _themeMode = ThemeMode.light;
|
||||
|
||||
void setLocale(Locale value) => setState(() => _locale = value);
|
||||
void setThemeMode(ThemeMode mode) => setState(() => _themeMode = mode);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'Nethive Neo',
|
||||
theme: ThemeData(
|
||||
primarySwatch: Colors.blue,
|
||||
),
|
||||
darkTheme: ThemeData.dark(),
|
||||
themeMode: _themeMode,
|
||||
locale: _locale,
|
||||
home: const Placeholder(), // Cambia esto por tu pantalla inicial
|
||||
);
|
||||
}
|
||||
} */
|
||||
class MyApp extends StatefulWidget {
|
||||
const MyApp({Key? key}) : super(key: key);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user