flutter制作具有自定义导航栏的渐进式 Web 应用程序

child: Row(

children: [

Container(

height: 60.0,

width: 80.0,

child: Row(

children: [

AnimatedContainer(

duration: Duration(milliseconds: 475),

height: 35.0,

width: 5.0,

decoration: BoxDecoration(

color: widget.active ? Colors.white : Colors.transparent,

borderRadius: BorderRadius.only(

topRight: Radius.circular(10.0),

bottomRight: Radius.circular(10.0),

),

),

),

Padding(

padding: EdgeInsets.only(left: 30.0),

child: Icon(

widget.icon,

color: widget.active ? Colors.white : Colors.white54,

size: 19.0,

),

),

],

),

),

],

),

),

),

);

}

}

[](()让我们留意 - “仪表板”

========================================================================

此状态窗口小部件可帮助您维护宽高比,并充当标签,SharedFilesItem,ProjectStatisticScards的驱动程序小部件。

[](()Dashboard/Dashboard.dart

import ‘package:flutter/material.dart’;

import ‘package:flutter_vector_icons/flutter_vector_icons.dart’;

import ‘package:google_fonts/google_fonts.dart’;

import ‘package:percent_indicator/circular_percent_indicator.dart’;

import ‘package:praum_project_web_app/Dashboard/src/ProjectProgressCard.dart’;

import ‘package:praum_project_web_app/Dashboard/src/ProjectStatisticsCards.dart’;

import ‘package:praum_project_web_app/Dashboard/src/SharedFilesItem.dart’;

import ‘package:praum_project_web_app/Dashboard/src/SubHeader.dart’;

import ‘package:praum_project_web_app/Dashboard/src/Tabs.dart’;

class DashBoard extends StatelessWidget {

@override

Widget build(BuildContext context) {

return Positioned(

left: 100.0,

child: Container(

height: MediaQuery.of(context).size.height,

width: MediaQuery.of(context).size.width * 0.63,

color: Colors.white,

child: Column(

crossAxisAlignment: CrossAxisAlignment.start,

children: [

Container(

margin: EdgeInsets.only(left: 30.0, top: 25.0, bottom: 10.0),

child: Text(

‘Ongoing Projects’,

style: GoogleFonts.quicksand(

fontWeight: FontWeight.bold,

fontSize: 20.0,

),

),

),

Tabs(),

Container(

margin: EdgeInsets.only(top: 5.0),

height: 200.0,

width: MediaQuery.of(context).size.width * 0.62,

child: Row(

mainAxisAlignment: MainAxisAlignment.spaceEvenly,

crossAxisAlignment: CrossAxisAlignment.center,

children: [

ProjectProgressCard(

color: Color(0xffFF4C60),

projectName: ‘The Maptrix’,

percentComplete: ‘34%’,

progressIndicatorColor: Colors.redAccent[100],

icon: Feather.moon,

),

ProjectProgressCard(

color: Color(0xff6C6CE5),

projectName: ‘Delivery Club’,

percentComplete: ‘78%’,

progressIndicatorColor: Colors.blue[200],

icon: Feather.truck,

),

ProjectProgressCard(

color: Color(0xffFAAA1E),

projectName: ‘Travel Comrode’,

percentComplete: ‘82%’,

progressIndicatorColor: Colors.amber[200],

icon: Icons.local_airport,

),

],

),

),

SubHeader(

title: ‘Shared Files’,

),

SharedFilesItem(

color: Colors.blue,

sharedFileName: ‘Company Guidelines’,

members: ‘28 members’,

et: ‘10 Oct 2019’,

fileSize: ‘2.3 MB’,

),

SharedFilesItem(

color: Colors.amber,

sharedFileName: ‘Company Policy’,

members: ‘30 members’,

et: ‘27 Sep 2019’,

fileSize: ‘4.2 MB’,

),

SharedFilesItem(

color: Colors.red,

sharedFileName: ‘Wireframes’,

members: ‘14 members’,

et: ‘08 Oct 2019’,

fileSize: ‘1.6 MB’,

),

SubHeader(

title: ‘Project Statistics’,

),

ProjectStatisticsCards(),

],

),

),

);

}

}

我们正

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值