1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- import 'package:cached_network_image/cached_network_image.dart';
- import 'package:flutter/material.dart';
- Widget arrowBack() => Image.asset("lib/assets/img/topbar_return.png");
- Widget arrowBackWhite() => Image.asset("lib/assets/img/topbar_return_white.png");
- Widget arrowLeft({Color? color}) => Image.asset("lib/assets/img/btn_arrow_left.png", color: color,);
- Widget arrowRight({Color? color}) => Image.asset("lib/assets/img/btn_arrow_right.png", color: color,);
- Widget arrowTop({Color? color}) => Image.asset("lib/assets/img/btn_arrow_top.png", color: color,);
- Widget arrowBottom({Color? color}) => Image.asset("lib/assets/img/btn_arrow_bottom.png", color: color,);
- Widget arrowRight1() => Image.asset("lib/assets/img/btn_arrow_right1.png");
- Widget arrowRight2() => Image.asset("lib/assets/img/btn_arrow_right2.png");
- Widget arrowRight4() => Image.asset("lib/assets/img/btn_arrow_right4.png");
- Widget arrowRight5() => Image.asset("lib/assets/img/btn_arrow_right5.png");
- Widget arrowRight6() => Image.asset("lib/assets/img/btn_arrow_right6.png");
- Widget arrowRight7() => Image.asset("lib/assets/img/btn_arrow_right7.png");
- Widget arrowBackShoe({Color? color}) => Padding(
- padding: const EdgeInsets.only(right: 6.0),
- child: Image.asset("lib/assets/img/sdk_gamepop_close.png", height: 22.0, color: color,),
- );
- ImageProvider<Object> userAvatarProvider(String? url) {
- if(url == null || url == ""){
- return AssetImage("lib/assets/img/user_default_avatar.png");
- }else {
- return CachedNetworkImageProvider(url);
- }
- }
- Widget userAvatar(String url) => (url == null || url == "")
- ? Image.asset("lib/assets/img/user_default_avatar.png")
- : CachedNetworkImage(imageUrl: url);
- Widget iconMore() => Image.asset(
- "lib/assets/img/topbar_more_white.png",
- );
- Widget iconMoreGray() => Image.asset(
- "lib/assets/img/topbar_more.png",
- );
- Widget iconClose() => Image.asset(
- "lib/assets/img/topbar_cancel.png",
- );
- final Widget dot = Container(
- margin: const EdgeInsets.symmetric(horizontal: 10.0),
- width: 2,
- height: 2,
- color: Color(0xff999999),
- );
|