flutter_initicon
初始圖示用於顯示沒有頭像或個人資料圖片的使用者姓名首字母。
35喜歡 3410近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
lrferreiro/flutter_initicon open-source repository details.
以下為英文專案原文快照,最新內容請造訪 GitHub。
Initicon are used to show the initials of the name of users who do not have an avatar or profile image.
| Examples |
|---|
flutter_initicon: ^2.0.0
import 'package:flutter_initicon/flutter_initicon.dart';
import 'package:flutter/material.dart';
void main() {
return runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Initicon(
text: "Full Name",
elevation: 4
),
),
);
}
}
MIT License
依賴清單 3 項
{"sdk":"flutter"}{"sdk":"flutter"}^4.0.0先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗