You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

43 lines
1.1 KiB

import 'package:flutter/material.dart';
import 'package:youtribe_lib/globals.dart' as globals;
import 'package:get/get.dart';
import 'package:youtribe_lib/store/user.dart';
import 'package:youtribe_lib/lang/en.dart';
import 'package:youtribe_lib/lang/fr.dart';
import 'package:youtribe_lib/views/login/login.dart';
import 'package:youtribe_lib/views/account.dart';
import 'package:youtribe_lib/views/accountForm.dart';
// translation
class Messages extends Translations {
@override
Map<String, Map<String, String>> get keys => {'en_US': en, 'fr_FR': fr};
}
// main runtime
void main() {
runApp(NavMap());
}
// routes
class NavMap extends StatelessWidget {
final UserController userController = Get.put(UserController());
@override
Widget build(BuildContext context) {
return GetMaterialApp(
title: globals.appName,
locale: globals.locale,
fallbackLocale: globals.fallbackLocale,
translations: Messages(),
routes: {
'/': (context) => Login(),
'/account': (context) => Account(),
'/account_form': (context) => AccountForm(),
},
);
}
}