hathibelagal-dev / hathibelagal-dev/css_text_for_flutter
why this is not working in sliver app bar
- Dominant language
- C++
- Stars
- 56
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
import 'package:flutter/material.dart';
import 'package:css_text/css_text.dart';
void main() {
runApp(MaterialApp(
title: 'Androidmonks',
home: Scaffold(
body: CustomScrollView(
slivers: [
SliverAppBar(
backgroundColor: Colors.orangeAccent,
floating: true,
actions: [
_Home(),
],
),
],
),
)));
}
class _Home extends StatelessWidget {
@override
Widget build(BuildContext context) {
String htmlContent = """
Hello World!!
How are you today?
But why are you doing this?
Can you tell me?
Please visit Flutter docs
This text is slightly transparent, and has a slightly transparent background too.
""";
var myRichText =
HTML.toRichText(context, htmlContent, linksCallback: (link) {
print("You clicked on $link");
});
return Scaffold(
body: Container(padding: EdgeInsets.all(16.0), child: myRichText));
}
}
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.