generated from cepdnaclk/eYY-3yp-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from cepdnaclk/feature-bin-status
Added routes.dart file to store routes of the app.
- Loading branch information
Showing
3 changed files
with
33 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import 'package:bin_owner_mobile_app/main.dart'; | ||
import 'package:flutter/material.dart'; | ||
import './screens/bin_level_screen.dart'; | ||
|
||
class AppRoutes { | ||
static const String home = '/home'; | ||
static const String binLevel = '/bin-level-screen'; | ||
|
||
static Map<String, WidgetBuilder> routes = { | ||
home: (context) => MyHomePage(title: 'Home Page'), | ||
binLevel: (context) => BinLevelScreen(), | ||
}; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class BinLevelScreen extends StatelessWidget { | ||
const BinLevelScreen({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold(appBar: AppBar(title: Text('Bin Level Monitor'))); | ||
} | ||
} |