search_highlight_text 1.0.0+2 copy "search_highlight_text: ^1.0.0+2" to clipboard
search_highlight_text: ^1.0.0+2 copied to clipboard

Simple Inherited Widget to highlight text in a search result, with custom highlight Color and highlight TextStyle.

example/lib/main.dart

import 'package:example/search/views/search_view.dart';
import 'package:flutter/material.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return ProviderScope(
      child: MaterialApp(
        debugShowCheckedModeBanner: false,
        title: 'Search Highlight Text Example',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: const SearchView(),
      ),
    );
  }
}
21
likes
140
pub points
90%
popularity

Publisher

unverified uploader

Simple Inherited Widget to highlight text in a search result, with custom highlight Color and highlight TextStyle.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on search_highlight_text