• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

clovisnicolas / flutter_contacts / 18
90%
master: 100%

Build:
Build:
LAST BUILD BRANCH: initials
DEFAULT BRANCH: master
Ran 15 Nov 2018 08:31PM UTC
Jobs 1
Files 1
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
18

Pull #44

travis-ci

web-flow
Add Initials value to Contact

Hello, I noticed that the code for providing initials for the Contact avatar was in the `ContactListPage`, and that it gave the first two letters of `displayName` rather than initials. This PR is to add a method that computes a `Contact`'s initials within the model.

I'm still getting used to Dart as a language (as an iOS dev I use Swift), so if this isn't the best approach let me know. My first intuition was to extend `Contact`, however I'm not sure Dart supports that... Instead I tried to mimic a computed variable by creating this initials() function.

Would appreciate any feedback (particular in terms of syntax or creating extensions), and thanks for maintaining this framework!
Pull Request #44: Add Initials value to Contact

7 of 7 new or added lines in 1 file covered. (100.0%)

64 of 71 relevant lines covered (90.14%)

1.48 hits per line

Jobs
ID Job ID Ran Files Coverage
1 18.1 15 Nov 2018 08:31PM UTC 0
90.14
Travis Job 18.1
Source Files on build 18
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #18
  • Pull Request #44
  • PR Base - master (#17)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc