zoukankan      html  css  js  c++  java
  • 完整单页记录

    import 'package:flutter/material.dart';
    
    void main() {
      runApp(new MyApp());
    }
    class MyApp extends StatelessWidget {
    
      @override
      Widget build(BuildContext context) {
        return new MaterialApp(
          title: 'Generated App',
          theme: new ThemeData(
            primarySwatch: Colors.red,
            primaryColor: const Color(0xFFf44336),
            accentColor: const Color(0xFFf44336),
            canvasColor: const Color(0xFFfafafa),
            fontFamily: 'Roboto',
          ),
          home: new MyHomePage(),
        );
      }
    }
    
    class MyHomePage extends StatefulWidget {
      MyHomePage({Key key}) : super(key: key);
      @override
      _MyHomePageState createState() => new _MyHomePageState();
    }
    
    class _MyHomePageState extends State<MyHomePage> {
      @override
      Widget build(BuildContext context) {
        return new Scaffold(
          appBar: new AppBar(
            title: new Text('微升'),
          ),
          bottomNavigationBar: new BottomNavigationBar(
              items: <BottomNavigationBarItem>[
                BottomNavigationBarItem(icon: Icon(Icons.fiber_new,), title: Text('信息'),),
                BottomNavigationBarItem(icon: Icon(Icons.live_tv,), title: Text('视频'),),
                BottomNavigationBarItem(icon: Icon(Icons.phone_in_talk,), title: Text('聊天'),),
              ]
          ),
        );
      }
    }
  • 相关阅读:
    通过索引优化sql
    索引概述
    Spring整合Mybatis
    Mybatis逆向工程
    Mybatis级联
    Mybatis动态语句
    Mybatis—curd
    (转)最大似然估计&贝叶斯估计
    筛法求质——poj2262&2909
    (转)poj1182食物链
  • 原文地址:https://www.cnblogs.com/xiongwei/p/10710095.html
Copyright © 2011-2022 走看看