mvc_web 1.7.0+1 copy "mvc_web: ^1.7.0+1" to clipboard
mvc_web: ^1.7.0+1 copied to clipboard

A custom framework that works with Flutter and an established design pattern to build interactive and comprehensive Web apps.

example/lib/main.dart

// Copyright 2021 Andrious Solutions Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:mvc_web/mvc_web.dart';

import 'package:example/src/controller.dart';

void main() => runApp(MyApp());

class MyApp extends AppStatefulWidget {
  MyApp({Key? key}) : super(key: key);

  @override
  AppState createAppState() => AppState(
        theme: ThemeData(
          // This is the theme of your application.
          primarySwatch: Colors.blue,
        ),
        // This is the app's navigation
        routerDelegate: AppRouterDelegate(routes: {
          '/': (_) => MyHomePage(),
        }),
        // This is the app's localization
        supportedLocales: AppTrs.supportedLocales,
        localizationsDelegates: [
          L10n.delegate!,
          GlobalWidgetsLocalizations.delegate,
          GlobalCupertinoLocalizations.delegate,
          GlobalMaterialLocalizations.delegate,
        ],
        // These are flags used during development
//    debugPaintSizeEnabled: true,
        debugShowCheckedModeBanner: false,
      );
}

class MyHomePage extends WebPageWidget {
  MyHomePage({
    Key? key,
  }) : super(
          controller: CounterAppController(),
          key: key ?? GlobalKey(debugLabel: 'mvc_web_example'),
        );
}
1
likes
80
pub points
0%
popularity

Publisher

verified publisherandrioussolutions.com

A custom framework that works with Flutter and an established design pattern to build interactive and comprehensive Web apps.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (LICENSE)

Dependencies

auto_size_text, file_picker, flutter, mvc_application, state_set, universal_html, url_launcher

More

Packages that depend on mvc_web