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

clovisnicolas / flutter_contacts / 18 / 1
90%
master: 100%

Build:
Build:
LAST BUILD BRANCH: initials
DEFAULT BRANCH: master
Ran 15 Nov 2018 08:31PM UTC
Files 1
Run time 0s
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

15 Nov 2018 08:26PM UTC coverage: 90.141% (-9.9%) from 100.0%
18.1

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

64 of 71 relevant lines covered (90.14%)

1.48 hits per line

Source Files on job 18.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 17
  • Travis Job 18.1
  • 116a3e52 on github
  • Prev Job for on patch-1 (#17.1)
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