Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
481 changes: 0 additions & 481 deletions ios/Runner.xcodeproj/project.pbxproj

This file was deleted.

7 changes: 0 additions & 7 deletions ios/Runner.xcworkspace/contents.xcworkspacedata

This file was deleted.

37 changes: 27 additions & 10 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
import 'package:authenticator/api/secure_store.dart';
import 'package:authenticator/view/settings.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:authenticator/view/home.dart';
import 'package:flutter_secure_storage/flutter_secure_storage.dart';

void main() {
runApp(MyApp());
runApp(
MaterialApp(
theme: ThemeData(
primarySwatch: Colors.orange,
),
debugShowCheckedModeBanner: false,
home: MyApp(),
)
);
}

class MyApp extends StatelessWidget {
Expand All @@ -14,18 +24,25 @@ class MyApp extends StatelessWidget {

@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
return Scaffold(
body: Home(store: store),
appBar: AppBar(
title: const Text("Authenticator"),
centerTitle: true,
),
),
theme: ThemeData(
primarySwatch: Colors.orange,
),
);
actions: <Widget>[
IconButton(
onPressed: () {
Navigator.push(
context,
CupertinoPageRoute(builder: (context) => const SettingsPage()));
},
icon: const Icon(
Icon.settings,
),
padding: const EdgeInsets.only(right: 20.0),
)
],
)
);
}
}
56 changes: 29 additions & 27 deletions lib/pages/user_guide.dart
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
import 'package:flutter/material.dart';

@override
Widget build(BuildContext context){
return MaterialApp(
title: "User Guide",
home: Scaffold(
appBar: AppBar(
title: const Text("User Guide"),
centerTitle: true,
class UserGuide extends StatelessWidget {
const UserGuide({super.key});

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("User Guide"),
centerTitle: true,
),
body: Center(
child: ListView(
shrinkWrap: true,
children: <Widget>[
const Text("\nStep 1. Tap the add application button.\n",
style: TextStyle(fontSize: 19)),
Image.asset("lib/assets/step1.png"), //Place holder image
const Text("\nStep 2. Scan the QR code with your camera.\n",
style: TextStyle(fontSize: 19)),
Image.asset("lib/assets/step2.png"), //Place holder image
const Text("\nStep 3. Press the save button.\n",
style: TextStyle(fontSize: 19)),
Image.asset("lib/assets/step3.png"), //Place holder image
const Text("\nStep 4. View your codes on the home screen.\n",
style: TextStyle(fontSize: 19))
],
),
body: Center(
child: ListView (
shrinkWrap: true,
children: <Widget> [
const Text("\nStep 1. Tap the add application button.\n", style: TextStyle(fontSize: 19)),
Image.asset("lib/assets/step1.png"), //Place holder image
const Text("\nStep 2. Scan the QR code with your camera.\n", style: TextStyle(fontSize: 19)),
Image.asset("lib/assets/step2.png"), //Place holder image
const Text("\nStep 3. Press the save button.\n", style: TextStyle(fontSize: 19)),
Image.asset("lib/assets/step3.png"), //Place holder image
const Text("\nStep 4. View your codes on the home screen.\n", style: TextStyle(fontSize: 19))
],
),
)
),
theme: ThemeData(
primarySwatch: Colors.orange,
)
);
)
);
}
}
76 changes: 76 additions & 0 deletions lib/view/settings.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
import 'package:authenticator/pages/user_guide.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class SettingsPage extends StatelessWidget {
const SettingsPage({super.key});

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("Settings"),
centerTitle: true,
),
body: ListView(
shrinkWrap: true,
padding: const EdgeInsets.fromLTRB(15, 25, 15, 10),
children: <Widget>[
const Text("Customization", style: TextStyle(fontSize: 23)),
//Themes
Padding(padding: const EdgeInsets.fromLTRB(0, 15, 0, 15),
child: ElevatedButton(
onPressed: () {
debugPrint('Themes worked');
},
style: ElevatedButton.styleFrom(
minimumSize: const Size.fromHeight(48),
alignment: Alignment.center,
),
child: const Text("Themes"))),
const Text("Information", style: TextStyle(fontSize: 23)),
//Privacy Page
Padding(padding: const EdgeInsets.fromLTRB(0, 15, 0, 7),
child: ElevatedButton(
onPressed: () {
debugPrint('Privacy Page worked');
},
style: ElevatedButton.styleFrom(
minimumSize: const Size.fromHeight(48),
alignment: Alignment.center,
),
child: const Text("Privacy Page"),
)
),
//License
Padding(padding: const EdgeInsets.only(bottom: 7),
child: ElevatedButton(
onPressed: () {
debugPrint('License worked');
},
style: ElevatedButton.styleFrom(
minimumSize: const Size.fromHeight(48),
alignment: Alignment.center,
),
child: const Text("License"),
)
),
Padding(padding: const EdgeInsets.only(bottom: 7),
child: ElevatedButton(
onPressed: () {
Navigator.push(
context,
CupertinoPageRoute(builder: (context) => const UserGuide()));
},
style: ElevatedButton.styleFrom(
minimumSize: const Size.fromHeight(48),
alignment: Alignment.center,
),
child: const Text("User Guide"),
)
),
],
),
);
}
}
Loading