Download flutter
tar xvf flutter_linux_1.17.5-stable.tar.xz
| import 'package:flutter/material.dart'; | |
| // --- | |
| typedef ButtonWidgetBuilder<T> = Widget Function(BuildContext context, T value, VoidCallback? onPressed); | |
| typedef ButtonsGroupLayoutWidgetBuilder<T> = Widget Function(BuildContext context, T value); | |
| class ButtonsGroup<T> extends StatelessWidget { | |
| final List<T> values; | |
| final ButtonWidgetBuilder<T> buttonBuilder; |
| import 'package:flutter/material.dart'; | |
| import 'package:collection/collection.dart'; | |
| abstract interface class InheritedSettingsData {} | |
| class InheritedSettings extends InheritedWidget { | |
| final List<InheritedSettingsData> settings; | |
| const InheritedSettings({ |
Download flutter
tar xvf flutter_linux_1.17.5-stable.tar.xz
Get started by creating a new file or uploading an existing file. We recommend every repository include a README, LICENSE, and .gitignore.
…or create a new repository on the command line
git init
git add README.md
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/<path_to_repo>.git
git push -u origin master
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/rendering.dart'; | |
| class FluidBox extends ConstrainedBox { | |
| FluidBox({ | |
| Key key, | |
| @required BoxConstraints constraints, | |
| Widget child, | |
| }) : super( |
| enum DynamicValueType { isMap, isList, isString, isNum, isBool, isNull, unknown } | |
| class DynamicValue { | |
| final dynamic value; | |
| DynamicValueType _type; | |
| DynamicValueType get type { | |
| if (_type == null) { | |
| _type = DynamicValueType.unknown; |
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } |
| import 'dart:ui'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/src/foundation/diagnostics.dart'; | |
| import 'dart:ui' as ui show TextStyle; | |
| final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| class CustomStyle with Diagnosticable implements TextStyle { | |