Skip to content

Instantly share code, notes, and snippets.

View BoltUIX's full-sized avatar

Bolt UIX BoltUIX

View GitHub Profile
@BoltUIX
BoltUIX / main.dart
Last active February 22, 2024 05:03
Divider - Layout is the visual arrangement of elements on the screen.
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
@BoltUIX
BoltUIX / main.dart
Last active February 22, 2024 05:03
Progress indicators express an unspecified wait time or display the length of a process.
import 'dart:async';
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
@BoltUIX
BoltUIX / main.dart
Last active February 22, 2024 05:03
Data tables display information in a grid-like format of rows and columns. They organise information in a way that's easy to scan, so that users can look for patterns and insights.
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
@BoltUIX
BoltUIX / main.dart
Last active February 22, 2024 05:03
Tooltips provide text labels that help to explain the function of a button or other user interface action. Tooltips display informative text when users hover over, focus on or long press an element.
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
@BoltUIX
BoltUIX / main.dart
Last active February 22, 2024 05:03
Banner - A banner displays an important, succinct message, and provides actions for users to address (or dismiss the banner). A user action is required for it to be dismissed.
import 'dart:async';
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
@BoltUIX
BoltUIX / main.dart
Last active February 22, 2024 05:03
Radio button
import 'package:flutter/material.dart';
// Entry point of the application
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
@BoltUIX
BoltUIX / main.dart
Last active February 22, 2024 05:06
Slider
import 'package:flutter/material.dart';
// Entry point of the application
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
@BoltUIX
BoltUIX / main.dart
Last active February 22, 2024 05:06
Switch
import 'package:flutter/material.dart';
// Entry point of the application
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
@BoltUIX
BoltUIX / main.dart
Last active February 22, 2024 05:06
Common utility function for text fields allows users to enter text into a UI.
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
@BoltUIX
BoltUIX / main.dart
Last active February 22, 2024 05:07
Use a text field when someone needs to enter text into a UI, such as filling in contact or payment information.
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {