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('聊天'),),
              ]
          ),
        );
      }
    }
  • 相关阅读:
    27.全排列与带重复的排列
    ios之自定义UISwitch
    ios之UIAlertView
    ios之UISegmentedcontol
    ios之UISlider
    ios之UITextfield
    ios之UIImageView
    ios之UIButoon
    ios之UILabel
    ios 点餐系统
  • 原文地址:https://www.cnblogs.com/xiongwei/p/10710095.html
Copyright © 2011-2022 走看看