SShortSingh.
Back to feed

Flutter Package anchored_list Enables O(1) Index Jumps in Million-Item Lazy Lists

0
·1 views

A new Flutter package called anchored_list solves the long-standing problem of jumping to an arbitrary index in a large lazy list without building all preceding items. It works by splitting the list into two slivers at a chosen anchor index, placing earlier items at negative scroll offsets so the viewport starts exactly at the target. This approach makes jumping to any index — such as row 842,013 in a million-item list — as cheap as jumping to row 3, achieving true O(1) performance. The method also prevents scroll position from shifting when new items are inserted above the current view, making it well-suited for chats, feeds, and logs. Existing popular packages like scrollable_positioned_list and scroll_to_index, which together still exceed a million monthly downloads, are both effectively unmaintained, highlighting a gap this package aims to fill.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Engineer shares 18 lessons from building 12 AI voice models using diffusion TTS

A software engineer documented roughly one month of work designing and deploying 12 role-specific AI voice models — covering narrator, counselor, sales, presenter, operator, and MC roles for both men and women. The project used diffusion TTS for voice design, where each voice is defined by a text caption and a random seed, making results fully reproducible. A key finding was that diffusion TTS ran 2.5 times slower than real time on the same GPU, making it unsuitable for live conversation and prompting a two-stage approach using lighter pre-trained models for actual speech synthesis. The engineer identified corpus quality gates as a central problem, noting that six of the 18 documented failures involved gates that existed but did not work as intended — for instance, strict gates inadvertently filtered out expressive takes, leaving only monotonous audio. Additional pitfalls included undetectable long-vowel defects caused by text normalization, a hallucination guard that only failed during actual hallucinations, and symbol-stripping rules that silently dropped valid Japanese characters from input text.

0
ProgrammingDEV Community ·

Developer Builds Interactive Excel Dashboard to Analyse Jumia E-commerce Data

A developer has created an interactive Excel dashboard using transactional data from Jumia, one of Africa's largest e-commerce platforms. The project involved cleaning raw data by removing duplicates, fixing inconsistencies, and handling missing values before analysis. Excel functions such as IF, AND, AVERAGE, COUNTA, MIN, and MAX were used to categorise prices, discounts, ratings, and calculate key metrics. Pivot tables, charts, and slicers were incorporated to enable dynamic filtering and visual data exploration. The analysis concluded that consistent product quality and customer value matter more to sales performance than high discounts or large review volumes alone.

0
ProgrammingDEV Community ·

Excel Dashboard Built to Analyze Jumia Product Pricing, Discounts and Ratings

A data analyst used Microsoft Excel and Power Query to clean and visualize a 115-row Jumia e-commerce dataset covering product prices, discounts, ratings, and reviews. The raw data contained multiple quality issues, including 58 blank review and rating fields, negative review counts, price ranges instead of single values, and ratings stored as text strings. Cleaning steps included converting negative review figures to absolute values, extracting midpoint prices from ranges, stripping currency symbols, and standardizing rating formats. The analyst deliberately left missing review fields blank rather than replacing them with zeros, to distinguish unavailable data from confirmed zero-review products. The finished interactive dashboard — built with PivotTables, PivotCharts, and slicers — was designed to answer business questions such as whether higher discounts drive more customer engagement and whether price correlates with product ratings.

0
ProgrammingDEV Community ·

AuthGeek offers offline TOTP authentication with Argon2-encrypted local vault

A developer has released AuthGeek, a free open-source desktop authenticator for Windows that stores TOTP and HOTP codes entirely on the local machine with no cloud sync or account required. Secrets are secured in a local vault using Argon2id key derivation, chosen for its memory-hard properties over alternatives like PBKDF2. The app supports adding accounts via QR code scan or manual secret entry, and includes encrypted backup and restore functionality. Built with .NET 8 and Avalonia UI, the tool is available on GitHub, though the installer is not yet code-signed and may trigger a SmartScreen warning on first run. The developer openly acknowledges that storing codes on the same machine used for login is a weaker security model than a separate physical device, and advises users with stricter threat models to continue using a phone-based authenticator.

Flutter Package anchored_list Enables O(1) Index Jumps in Million-Item Lazy Lists · ShortSingh