Skip to content

Instantly share code, notes, and snippets.

<meta charset="utf-8">
<title>Chika Java script</title>
<style media="screen">
import 'package:flutter/material.dart';
void main() => runApp();
MaterialApp(
title: 'Texty Navigation',
theme: new ThemeData(
primaryColor: Color.fromRGBO(55, 113, 170, 1.0),
),
home: new TextyNavigation(),
)
class TextyNavigation extends StatefulWidget {
@override
_TextyNavigationState createState() => _TextyNavigationState();
}
class _TextyNavigationState extends State<TextyNavigation> {
@override
Widget build(BuildContext context) {
return Scaffold(...);
}
class TextyNavigation extends StatefulWidget {
@override
_TextyNavigationState createState() => _TextyNavigationState();
}
class _TextyNavigationState extends State<TextyNavigation> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
makeProfileAvatar() {
return Column(
children: <Widget>[
// SizedBox(height: 10.0),
CircleAvatar(
radius: 60.0,
backgroundImage: new AssetImage('assets/shubie2.png'),
),
SizedBox(height: 20.0),
Center(
Column makeMenuItem(icon, title) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
mainAxisSize: MainAxisSize.min,
verticalDirection: VerticalDirection.down,
children: <Widget>[
Center(
child: Icon(
icon,
size: 80.0,
GridView menuGrid() {
return GridView.count(
crossAxisCount: 2,
children: <Widget>[
makeMenuItem(Icons.message, "Messages"),
makeMenuItem(Icons.phone_forwarded, "Calls"),
makeMenuItem(Icons.dialpad, "Dial"),
makeMenuItem(Icons.contacts, "Contacts"),
makeMenuItem(Icons.more_horiz, "More"),
makeMenuItem(Icons.settings, "Settings")
return Scaffold(
appBar: AppBar(
title: Text("Texty Navigation"),
),
drawer: Drawer(
child: Container(
padding: EdgeInsets.only(top: 60.0),
decoration: BoxDecoration(color: Color.fromRGBO(55, 113, 170, 1.0)),
child: Column(
children: <Widget>[
class Lesson {
String title;
String level;
double indicatorValue;
int price;
String content;
Lesson(
{this.title, this.level, this.indicatorValue, this.price, this.content});
}