Skip to content

Instantly share code, notes, and snippets.

@pedromassango
Created September 2, 2018 21:39
Show Gist options
  • Select an option

  • Save pedromassango/616bb1d62136973ae3fe65c87948ca4b to your computer and use it in GitHub Desktop.

Select an option

Save pedromassango/616bb1d62136973ae3fe65c87948ca4b to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
import 'new_task.dart';
void main() => runApp(new TaskyApp());
final mTitle = "Tasks";
class TaskyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: HomePage(),
//... another code
);
}
}
//Home Page
class HomePage extends StatefulWidget {
// code removed for brevity
}
// Home Page state
class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
bottomNavigationBar: BottomNavigationBar(
currentIndex: 0,
fixedColor: Colors.black,
items: <BottomNavigationBarItem>[
BottomNavigationBarItem(
icon: new Icon(Icons.home),
title: new Text("")
),
BottomNavigationBarItem(
icon: new Icon(Icons.calendar_today),
title: new Text("")
),
BottomNavigationBarItem(
icon: new Icon(Icons.playlist_add_check),
title: new Text("")
)
],
),
// code removed for brevity
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment