mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-08-25 14:31:51 +00:00
20 lines
515 B
Dart
20 lines
515 B
Dart
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
import 'package:equatable/equatable.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
part 'support_system_state.dart';
|
|
|
|
class SupportSystemCubit extends Cubit<SupportSystemState> {
|
|
SupportSystemCubit() : super(const SupportSystemState('about'));
|
|
|
|
void showArticle({
|
|
required final String article,
|
|
final BuildContext? context,
|
|
}) {
|
|
emit(SupportSystemState(article));
|
|
if (context != null) {
|
|
Scaffold.of(context).openEndDrawer();
|
|
}
|
|
}
|
|
}
|