mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-08-24 01:08:09 +08:00
37 lines
773 B
Dart
37 lines
773 B
Dart
/*
|
|
* SPDX-FileCopyrightText: 2019-2021 Vishesh Handa <me@vhanda.in>
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
// FIXME: Why are you scrollable!!
|
|
class EmptyTextSliver extends StatelessWidget {
|
|
const EmptyTextSliver({
|
|
super.key,
|
|
required this.emptyText,
|
|
});
|
|
|
|
final String emptyText;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SliverFillRemaining(
|
|
hasScrollBody: false,
|
|
fillOverscroll: false,
|
|
child: Center(
|
|
child: Text(
|
|
emptyText,
|
|
textAlign: TextAlign.center,
|
|
style: TextStyle(
|
|
fontSize: 28.0,
|
|
fontWeight: FontWeight.w300,
|
|
color: Colors.grey[350],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|