rename to loris
This commit is contained in:
parent
05eef7f783
commit
30de8189bc
8 changed files with 104 additions and 19 deletions
|
@ -19,7 +19,7 @@ class _MainScaffoldState extends State<MainScaffold> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final screens = [
|
||||
timeline(context),
|
||||
const Timeline(),
|
||||
chat(context),
|
||||
notifications(context),
|
||||
settings(context),
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:localization/localization.dart';
|
||||
|
||||
class Post extends StatefulWidget {
|
||||
const Post({Key? key}) : super(key: key);
|
||||
|
@ -61,6 +62,8 @@ class PostBody extends StatefulWidget {
|
|||
|
||||
class _PostBodyState extends State<PostBody> {
|
||||
bool visible = false;
|
||||
String cwButtonText = "show".i18n();
|
||||
Icon cwButtonIcon = const Icon(Icons.visibility);
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
|
@ -69,14 +72,23 @@ class _PostBodyState extends State<PostBody> {
|
|||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
TextButton.icon(
|
||||
Text(
|
||||
"sdkfjksdjfkd sldkjfksdjf dskfjsdkfjkds skdfjksdjfisdujfiosdhfjkldsfh sldkfjksdjfksdjfklsdjf"),
|
||||
OutlinedButton.icon(
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
visible = !visible;
|
||||
if (visible) {
|
||||
cwButtonIcon = const Icon(Icons.visibility_off);
|
||||
cwButtonText = "hide".i18n();
|
||||
} else {
|
||||
cwButtonText = "show".i18n();
|
||||
cwButtonIcon = const Icon(Icons.visibility);
|
||||
}
|
||||
});
|
||||
},
|
||||
icon: const Icon(Icons.warning),
|
||||
label: const Text("warning")),
|
||||
icon: cwButtonIcon,
|
||||
label: Text(cwButtonText)),
|
||||
Visibility(
|
||||
visible: visible,
|
||||
child: RichText(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue