flutly 1.1.0+36 flutly: ^1.1.0+36 copied to clipboard
Flutly is a modern and customizable Flutter library that offers a collection of flexible and user-friendly widgets and tools.
import 'package:easy_localization/easy_localization.dart';
import 'package:flutly/core/flutly_app.dart';
import 'package:flutly/core/flutly_app_bar/flutly_app_bar.dart';
import 'package:flutly/core/flutly_bottom_bar/flutly_bottom_bar.dart';
import 'package:flutly/core/flutly_page.dart';
import 'package:flutly/flutly.dart';
import 'package:flutly/models/flutly_bottom_bar_item.dart';
import 'package:flutly/test/five_page.dart';
import 'package:flutly/test/four_page.dart';
import 'package:flutly/test/main_page.dart';
import 'package:flutly/test/other_page.dart';
import 'package:flutly/test/second_page.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:yaml/yaml.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
final yamlString = await rootBundle.loadString('assets/config.yaml');
YamlMap yamlData = loadYaml(yamlString);
await Flutly.setup(yamlData, const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
Flutly.screenConfiguration(context);
return FlutlyApp(
title: 'Flutter Demo',
localizationsDelegates: context.localizationDelegates,
supportedLocales: context.supportedLocales,
locale: context.locale,
appBar: FlutlyAppBar(
color: const Color.fromRGBO(16, 17, 16, 1),
),
bottomBar: FlutlyBottomBar(
height: 60,
itemSize: 30,
color: const Color.fromRGBO(16, 17, 16, 1),
blur: 2.5,
items: [
],
),
pages: [
FlutlyPage(
name: "Other",
path: "/other",
page: const OtherPage(),
),
],
);
}
}