ui_ex 0.0.7 ui_ex: ^0.0.7 copied to clipboard
flutter about ui extension
Features #
Getting started #
add this line to pubspec.yaml
dev_dependencies:
ui_ex: ^0.0.7
import package
import 'package:ui_ex/ui_ex.dart';
Usage #
simple example,
import 'package:flutter/material.dart';
import 'package:ui_ex/ui_ex.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) => 'Flutter Demo'.materialApp(
theme: ThemeData(primarySwatch: Colors.blue), home: const MyHomePage());
}
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
String get title => "MyHomePage";
String mathStr =
r'$$\hat f(\xi) = \int_{-\infty}^\infty f(x)e^{- 2\pi i \xi x}\mathrm{d}x$$';
bool _showLoading = false;
bool get showLoading => _showLoading;
set showLoading(bool value) => fresh(() => _showLoading = value);
@override
Widget build(BuildContext context) => mathStr
.markdown(textStyle: 16.size(), enableInteractiveSelection: false)
.container()
.scaffold(
appBar: title.text().cupertinoMiddleAppBar(context: context),
showLoading: showLoading,
);
}
Additional information #
TODO: Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.