This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ModuleA extends Module { | |
ModuleA() | |
: super( | |
name: 'ModuleA', | |
initialRoute: ModuleATmp1.route, | |
routes: { | |
ModuleATmp1.route: (BuildContext context) => ModuleATmp1(), | |
ModuleATmp2.route: (BuildContext context) => ModuleATmp2(), | |
}, | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:navigator/app/app.dart'; | |
import 'package:navigator/app/modules.dart'; | |
void main() { | |
runApp(MaterialApp( | |
title: 'Navigation Demo', | |
theme: ThemeData( | |
primarySwatch: Colors.blue, | |
visualDensity: VisualDensity.adaptivePlatformDensity, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": [ | |
{ | |
"quizId":1, | |
"name": "Programming" | |
}, | |
{ | |
"quizId":2, | |
"name": "Movies" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"quizId": 1, | |
"data": [ | |
{ | |
"questionId": 1, | |
"title": "Best programming language", | |
"body": "", | |
"correctAnswer": "1", | |
"answers": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place fonts/icomoon.ttf in your fonts/ directory and | |
// add the following to your pubspec.yaml | |
// flutter: | |
// fonts: | |
// - family: icomoon | |
// fonts: | |
// - asset: fonts/icomoon.ttf | |
import 'package:flutter/widgets.dart'; | |
class Icomoon { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Car { | |
final int id; | |
final String name; | |
final CarBrand brand; | |
Car({ | |
this.id, | |
this.name, | |
this.brand, | |
}); |