Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.18 KB

README.md

File metadata and controls

41 lines (30 loc) · 1.18 KB

shared_pref

A new Flutter project.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

How to run the examples

There are two examples here:

  • Counter example
  • SharedPrefs example

To test the two examples, you have to change the LoadPage() to MyHomePage(title: 'SharedPreferences Demo') below to run the Counter example. The LoadPage() runs the SharedPrefs example.

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'SharedPreferences Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: LoadPage() //MyHomePage(title: 'SharedPreferences Demo'),
        );
  }
}