zoukankan      html  css  js  c++  java
  • 初探Flutter-(招聘类网站demo)

    import 'package:flutter/material.dart';
    import 'package:flutterapp/find/Article.dart';
    //样式为无状态的
    class ArticleItem extends StatelessWidget {
      final Article model;
      ArticleItem(this.model);
      @override
      Widget build(BuildContext context) {
        return Container(
          height: 100,
          padding: EdgeInsets.all(5),
          child: Card(
            elevation: 5,
            child: Padding(
              padding: EdgeInsets.all(5),
              child: Column(
                mainAxisAlignment: MainAxisAlignment.start,
                  children:<Widget> [
                    new Row(
                        children:<Widget> [
                          new Column(
                            children:<Widget> [
                              SizedBox( 20),
                            ],
                          ),
                           new Column(
                               children:<Widget> [
                                 Container(
                                    50, height: 50,
                                   decoration: BoxDecoration(
                                       borderRadius: BorderRadius.circular(10),
                                       image: DecorationImage(
                                           image: NetworkImage(model.logo),
                                           fit: BoxFit.cover
                                       )
                                   ),
                                 )
                               ]
                           ),
                          new Column(
                              children:<Widget> [
                                Text(
                                  "       "+model.location.substring(0,6),
                                  style: TextStyle(fontSize: 12, color: Colors.grey),
                                ),
                              ]
                          ),
                          new Column(
                              crossAxisAlignment: CrossAxisAlignment.start,
                              children:<Widget> [
                                new Row(
                                    children:<Widget> [
                                      Text(
                                        "     | "+model.type,
                                        style: TextStyle(fontSize: 12, color: Colors.grey),
                                      ),
                                    ]
                                ),
                                new Row(
                                    children:<Widget> [
                                      Text(
                                        "     | "+model.size,
                                        style: TextStyle(fontSize: 12, color: Colors.grey),
                                      ),
                                    ]
                                ),
                                new Row(
                                    children:<Widget> [
                                      Text(
                                        "     | "+model.employee,
                                        style: TextStyle(fontSize: 12, color: Colors.grey),
                                      ),
                                    ]
                                ),
                              ]
                          ),
                        ],
                    ),
                    new Row(
                      children:<Widget> [
                        Text(
                          '热招 :  '+model.hot+"  等",
                          style: TextStyle(fontSize: 12, color: Colors.grey),
                        ),
                        Text(
                          model.count+"个职位",
                          style: TextStyle(fontSize: 12, color: Colors.grey),
                        ),
                      ],
                    )
                  ],
              ),
    
            ),
          ),
        );
      }
    }
    
  • 相关阅读:
    后台写js 并跳转
    visual studio 2010 js 调试
    网页搜索功能 多表搜索sql
    c# 取得扩展名
    ajaxFileUpload 注意!
    ajaxFileUpload js判断类型
    sortable items不让他拖,也不让他放。cancel不然他拖动
    json 多重嵌套反序列化和序列化
    C#串口操作类,包括串口读写操作
    C#操作Word的超详细总结
  • 原文地址:https://www.cnblogs.com/caoxueyang/p/13883484.html
Copyright © 2011-2022 走看看