添加图片

hmxc
小赖 4 years ago
parent 4b500cf958
commit 23be86de3f

@ -4,13 +4,4 @@ A new Flutter application.
## Getting Started ## Getting Started
This project is a starting point for a Flutter application. ### 使用`fgen`生成图片
A few resources to get you started if this is your first Flutter project:
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

@ -1,3 +1,4 @@
import 'package:aku_community_manager/const/resource.dart';
import 'package:aku_community_manager/provider/user_provider.dart'; import 'package:aku_community_manager/provider/user_provider.dart';
import 'package:aku_community_manager/style/app_style.dart'; import 'package:aku_community_manager/style/app_style.dart';
import 'package:aku_community_manager/tools/screen_tool.dart'; import 'package:aku_community_manager/tools/screen_tool.dart';
@ -186,9 +187,10 @@ class _HomePageState extends State<HomePage> {
Get.to(ScanPage()); Get.to(ScanPage());
}, },
child: Column(children: [ child: Column(children: [
Icon( Image.asset(
Icons.access_alarm, R.ASSETS_HOME_IC_SCAN_PNG,
size: 48.w, height: 48.w,
width: 48.w,
), ),
Text( Text(
'扫一扫', '扫一扫',
@ -209,9 +211,10 @@ class _HomePageState extends State<HomePage> {
height: double.infinity, height: double.infinity,
onPressed: () {}, onPressed: () {},
child: Column(children: [ child: Column(children: [
Icon( Image.asset(
Icons.access_time, R.ASSETS_HOME_IC_NEWS_PNG,
size: 48.w, height: 48.w,
width: 48.w,
), ),
Text( Text(
'消息', '消息',

@ -63,6 +63,9 @@ flutter:
# included with your application, so that you can use the icons in # included with your application, so that you can use the icons in
# the material Icons class. # the material Icons class.
uses-material-design: true uses-material-design: true
assets:
- assets/
- assets/home/
# To add assets to your application, add an assets section, like this: # To add assets to your application, add an assets section, like this:
# assets: # assets:
# - images/a_dot_burr.jpeg # - images/a_dot_burr.jpeg

Loading…
Cancel
Save