“itinéraires en flottement” Réponses codées

itinéraires d'applications matérielles

///////////////////////////////////////
// Setting up routes on material app //
///////////////////////////////////////

MaterialApp(
  // Start the app with the "/" named route. In this case, the app starts
  // on the FirstScreen widget.
  initialRoute: '/',
  routes: {
    // When navigating to the "/" route, build the FirstScreen widget.
    '/': (context) => FirstScreen(),
    // When navigating to the "/second" route, build the SecondScreen widget.
    '/second': (context) => SecondScreen(),
  },
);
ByZef

itinéraires en flottement

// add 
// static String routeName = '/splash';

//main.dart
routes:routes

import 'package:flutter/material.dart';
//import required file

final Map<String, WidgetBuilder> routes = {
  SplashScreen.routeName:(context) => SplashScreen(),
  OnBoard.routeName:(context) => OnBoard(),
  HomeScreen.routeName:(context)=> HomeScreen(),
};
Bijay Poudel

Réponses similaires à “itinéraires en flottement”

Questions similaires à “itinéraires en flottement”

Plus de réponses similaires à “itinéraires en flottement” dans Dart

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code