Skip to content

Instantly share code, notes, and snippets.

import 'package:flutter/material.dart';
import '../view/bottom_proposal_menu.dart';
class ProposalBottomNav extends StatefulWidget {
const ProposalBottomNav({super.key});
@override
State<ProposalBottomNav> createState() => _ProposalBottomNavState();
}
@hydev777
hydev777 / hashSet.dart
Last active April 24, 2024 21:53
HashSet in Dart
class CustomHashSet {
CustomHashSet();
final _keys = List<List<int>>.generate(1000, (index) => []);
List<List<int>> get keys {
return _keys;
}
int _hashFunction(int key) {
@hydev777
hydev777 / message.dart
Last active April 3, 2023 12:47
Class with constructor inheritance
class Message {
Message({ this.content, this.type });
final String? content;
final String? type;
}
class TextMessage extends Message {
@hydev777
hydev777 / Commit Formatting.md
Created August 16, 2022 01:54 — forked from brianclements/Commit Formatting.md
Angular Commit Format Reference Sheet

Commit Message Guidelines

We have very precise rules over how our git commit messages can be formatted. This leads to more readable messages that are easy to follow when looking through the project history. But also, we use the git commit messages to generate the Angular change log.

Commit Message Format

Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject: