gmana_ext 0.0.9 gmana_ext: ^0.0.9 copied to clipboard
gmana extensions is a utility helpers to faster development for internal.
import 'package:flutter/material.dart';
import 'package:gmana_ext/gmana_ext.dart';
void main() {
runApp(const GApp());
}
class GApp extends StatelessWidget {
const GApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
debugShowCheckedModeBanner: false,
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
final String title;
const MyHomePage({super.key, required this.title});
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
const Text(
'You have pushed the button this many times:',
),
Text(
[
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
].flatten().toString(),
style: Theme.of(context).textTheme.headlineMedium,
),
],
),
),
);
}
}